home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / cvs-1.8 / cvs-1 / cvs-1.8.1 / configure < prev    next >
Encoding:
Text File  |  1996-05-06  |  85.0 KB  |  3,187 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.9 
  5. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_help="$ac_help
  15.   --with-krb4=value       set default \$(KRB4) from value"
  16.  
  17. # Initialize some variables set by options.
  18. # The variables have the same names as the options, with
  19. # dashes changed to underlines.
  20. build=NONE
  21. cache_file=./config.cache
  22. exec_prefix=NONE
  23. host=NONE
  24. no_create=
  25. nonopt=NONE
  26. no_recursion=
  27. prefix=NONE
  28. program_prefix=NONE
  29. program_suffix=NONE
  30. program_transform_name=s,x,x,
  31. silent=
  32. site=
  33. srcdir=
  34. target=NONE
  35. verbose=
  36. x_includes=NONE
  37. x_libraries=NONE
  38. bindir='${exec_prefix}/bin'
  39. sbindir='${exec_prefix}/sbin'
  40. libexecdir='${exec_prefix}/libexec'
  41. datadir='${prefix}/share'
  42. sysconfdir='${prefix}/etc'
  43. sharedstatedir='${prefix}/com'
  44. localstatedir='${prefix}/var'
  45. libdir='${exec_prefix}/lib'
  46. includedir='${prefix}/include'
  47. oldincludedir='/usr/include'
  48. infodir='${prefix}/info'
  49. mandir='${prefix}/man'
  50.  
  51. # Initialize some other variables.
  52. subdirs=
  53. MFLAGS= MAKEFLAGS=
  54.  
  55. ac_prev=
  56. for ac_option
  57. do
  58.  
  59.   # If the previous option needs an argument, assign it.
  60.   if test -n "$ac_prev"; then
  61.     eval "$ac_prev=\$ac_option"
  62.     ac_prev=
  63.     continue
  64.   fi
  65.  
  66.   case "$ac_option" in
  67.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  68.   *) ac_optarg= ;;
  69.   esac
  70.  
  71.   # Accept the important Cygnus configure options, so we can diagnose typos.
  72.  
  73.   case "$ac_option" in
  74.  
  75.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  76.     ac_prev=bindir ;;
  77.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  78.     bindir="$ac_optarg" ;;
  79.  
  80.   -build | --build | --buil | --bui | --bu)
  81.     ac_prev=build ;;
  82.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  83.     build="$ac_optarg" ;;
  84.  
  85.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  86.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  87.     ac_prev=cache_file ;;
  88.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  89.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  90.     cache_file="$ac_optarg" ;;
  91.  
  92.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  93.     ac_prev=datadir ;;
  94.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  95.   | --da=*)
  96.     datadir="$ac_optarg" ;;
  97.  
  98.   -disable-* | --disable-*)
  99.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  100.     # Reject names that are not valid shell variable names.
  101.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  102.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  103.     fi
  104.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  105.     eval "enable_${ac_feature}=no" ;;
  106.  
  107.   -enable-* | --enable-*)
  108.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  109.     # Reject names that are not valid shell variable names.
  110.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  111.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  112.     fi
  113.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  114.     case "$ac_option" in
  115.       *=*) ;;
  116.       *) ac_optarg=yes ;;
  117.     esac
  118.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  119.  
  120.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  121.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  122.   | --exec | --exe | --ex)
  123.     ac_prev=exec_prefix ;;
  124.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  125.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  126.   | --exec=* | --exe=* | --ex=*)
  127.     exec_prefix="$ac_optarg" ;;
  128.  
  129.   -gas | --gas | --ga | --g)
  130.     # Obsolete; use --with-gas.
  131.     with_gas=yes ;;
  132.  
  133.   -help | --help | --hel | --he)
  134.     # Omit some internal or obsolete options to make the list less imposing.
  135.     # This message is too long to be a string in the A/UX 3.1 sh.
  136.     cat << EOF
  137. Usage: configure [options] [host]
  138. Options: [defaults in brackets after descriptions]
  139. Configuration:
  140.   --cache-file=FILE       cache test results in FILE
  141.   --help                  print this message
  142.   --no-create             do not create output files
  143.   --quiet, --silent       do not print \`checking...' messages
  144.   --version               print the version of autoconf that created configure
  145. Directory and file names:
  146.   --prefix=PREFIX         install architecture-independent files in PREFIX
  147.                           [$ac_default_prefix]
  148.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  149.                           [same as prefix]
  150.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  151.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  152.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  153.   --datadir=DIR           read-only architecture-independent data in DIR
  154.                           [PREFIX/share]
  155.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  156.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  157.                           [PREFIX/com]
  158.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  159.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  160.   --includedir=DIR        C header files in DIR [PREFIX/include]
  161.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  162.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  163.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  164.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  165.   --program-prefix=PREFIX prepend PREFIX to installed program names
  166.   --program-suffix=SUFFIX append SUFFIX to installed program names
  167.   --program-transform-name=PROGRAM
  168.                           run sed PROGRAM on installed program names
  169. EOF
  170.     cat << EOF
  171. Host type:
  172.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  173.   --host=HOST             configure for HOST [guessed]
  174.   --target=TARGET         configure for TARGET [TARGET=HOST]
  175. Features and packages:
  176.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  177.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  178.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  179.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  180.   --x-includes=DIR        X include files are in DIR
  181.   --x-libraries=DIR       X library files are in DIR
  182. EOF
  183.     if test -n "$ac_help"; then
  184.       echo "--enable and --with options recognized:$ac_help"
  185.     fi
  186.     exit 0 ;;
  187.  
  188.   -host | --host | --hos | --ho)
  189.     ac_prev=host ;;
  190.   -host=* | --host=* | --hos=* | --ho=*)
  191.     host="$ac_optarg" ;;
  192.  
  193.   -includedir | --includedir | --includedi | --included | --include \
  194.   | --includ | --inclu | --incl | --inc)
  195.     ac_prev=includedir ;;
  196.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  197.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  198.     includedir="$ac_optarg" ;;
  199.  
  200.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  201.     ac_prev=infodir ;;
  202.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  203.     infodir="$ac_optarg" ;;
  204.  
  205.   -libdir | --libdir | --libdi | --libd)
  206.     ac_prev=libdir ;;
  207.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  208.     libdir="$ac_optarg" ;;
  209.  
  210.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  211.   | --libexe | --libex | --libe)
  212.     ac_prev=libexecdir ;;
  213.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  214.   | --libexe=* | --libex=* | --libe=*)
  215.     libexecdir="$ac_optarg" ;;
  216.  
  217.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  218.   | --localstate | --localstat | --localsta | --localst \
  219.   | --locals | --local | --loca | --loc | --lo)
  220.     ac_prev=localstatedir ;;
  221.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  222.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  223.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  224.     localstatedir="$ac_optarg" ;;
  225.  
  226.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  227.     ac_prev=mandir ;;
  228.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  229.     mandir="$ac_optarg" ;;
  230.  
  231.   -nfp | --nfp | --nf)
  232.     # Obsolete; use --without-fp.
  233.     with_fp=no ;;
  234.  
  235.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  236.   | --no-cr | --no-c)
  237.     no_create=yes ;;
  238.  
  239.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  240.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  241.     no_recursion=yes ;;
  242.  
  243.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  244.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  245.   | --oldin | --oldi | --old | --ol | --o)
  246.     ac_prev=oldincludedir ;;
  247.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  248.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  249.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  250.     oldincludedir="$ac_optarg" ;;
  251.  
  252.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  253.     ac_prev=prefix ;;
  254.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  255.     prefix="$ac_optarg" ;;
  256.  
  257.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  258.   | --program-pre | --program-pr | --program-p)
  259.     ac_prev=program_prefix ;;
  260.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  261.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  262.     program_prefix="$ac_optarg" ;;
  263.  
  264.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  265.   | --program-suf | --program-su | --program-s)
  266.     ac_prev=program_suffix ;;
  267.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  268.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  269.     program_suffix="$ac_optarg" ;;
  270.  
  271.   -program-transform-name | --program-transform-name \
  272.   | --program-transform-nam | --program-transform-na \
  273.   | --program-transform-n | --program-transform- \
  274.   | --program-transform | --program-transfor \
  275.   | --program-transfo | --program-transf \
  276.   | --program-trans | --program-tran \
  277.   | --progr-tra | --program-tr | --program-t)
  278.     ac_prev=program_transform_name ;;
  279.   -program-transform-name=* | --program-transform-name=* \
  280.   | --program-transform-nam=* | --program-transform-na=* \
  281.   | --program-transform-n=* | --program-transform-=* \
  282.   | --program-transform=* | --program-transfor=* \
  283.   | --program-transfo=* | --program-transf=* \
  284.   | --program-trans=* | --program-tran=* \
  285.   | --progr-tra=* | --program-tr=* | --program-t=*)
  286.     program_transform_name="$ac_optarg" ;;
  287.  
  288.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  289.   | -silent | --silent | --silen | --sile | --sil)
  290.     silent=yes ;;
  291.  
  292.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  293.     ac_prev=sbindir ;;
  294.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  295.   | --sbi=* | --sb=*)
  296.     sbindir="$ac_optarg" ;;
  297.  
  298.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  299.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  300.   | --sharedst | --shareds | --shared | --share | --shar \
  301.   | --sha | --sh)
  302.     ac_prev=sharedstatedir ;;
  303.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  304.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  305.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  306.   | --sha=* | --sh=*)
  307.     sharedstatedir="$ac_optarg" ;;
  308.  
  309.   -site | --site | --sit)
  310.     ac_prev=site ;;
  311.   -site=* | --site=* | --sit=*)
  312.     site="$ac_optarg" ;;
  313.  
  314.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  315.     ac_prev=srcdir ;;
  316.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  317.     srcdir="$ac_optarg" ;;
  318.  
  319.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  320.   | --syscon | --sysco | --sysc | --sys | --sy)
  321.     ac_prev=sysconfdir ;;
  322.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  323.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  324.     sysconfdir="$ac_optarg" ;;
  325.  
  326.   -target | --target | --targe | --targ | --tar | --ta | --t)
  327.     ac_prev=target ;;
  328.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  329.     target="$ac_optarg" ;;
  330.  
  331.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  332.     verbose=yes ;;
  333.  
  334.   -version | --version | --versio | --versi | --vers)
  335.     echo "configure generated by autoconf version 2.9"
  336.     exit 0 ;;
  337.  
  338.   -with-* | --with-*)
  339.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  340.     # Reject names that are not valid shell variable names.
  341.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  342.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  343.     fi
  344.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  345.     case "$ac_option" in
  346.       *=*) ;;
  347.       *) ac_optarg=yes ;;
  348.     esac
  349.     eval "with_${ac_package}='$ac_optarg'" ;;
  350.  
  351.   -without-* | --without-*)
  352.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  353.     # Reject names that are not valid shell variable names.
  354.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  355.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  356.     fi
  357.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  358.     eval "with_${ac_package}=no" ;;
  359.  
  360.   --x)
  361.     # Obsolete; use --with-x.
  362.     with_x=yes ;;
  363.  
  364.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  365.   | --x-incl | --x-inc | --x-in | --x-i)
  366.     ac_prev=x_includes ;;
  367.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  368.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  369.     x_includes="$ac_optarg" ;;
  370.  
  371.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  372.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  373.     ac_prev=x_libraries ;;
  374.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  375.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  376.     x_libraries="$ac_optarg" ;;
  377.  
  378.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  379.     ;;
  380.  
  381.   *)
  382.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  383.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  384.     fi
  385.     if test "x$nonopt" != xNONE; then
  386.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  387.     fi
  388.     nonopt="$ac_option"
  389.     ;;
  390.  
  391.   esac
  392. done
  393.  
  394. if test -n "$ac_prev"; then
  395.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  396. fi
  397.  
  398. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  399.  
  400. # File descriptor usage:
  401. # 0 standard input
  402. # 1 file creation
  403. # 2 errors and warnings
  404. # 3 some systems may open it to /dev/tty
  405. # 4 used on the Kubota Titan
  406. # 6 checking for... messages and results
  407. # 5 compiler messages saved in config.log
  408. if test "$silent" = yes; then
  409.   exec 6>/dev/null
  410. else
  411.   exec 6>&1
  412. fi
  413. exec 5>./config.log
  414.  
  415. echo "\
  416. This file contains any messages produced by compilers while
  417. running configure, to aid debugging if configure makes a mistake.
  418. " 1>&5
  419.  
  420. # Strip out --no-create and --no-recursion so they do not pile up.
  421. # Also quote any args containing shell metacharacters.
  422. ac_configure_args=
  423. for ac_arg
  424. do
  425.   case "$ac_arg" in
  426.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  427.   | --no-cr | --no-c) ;;
  428.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  429.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  430.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  431.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  432.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  433.   esac
  434. done
  435.  
  436. # NLS nuisances.
  437. # Only set LANG and LC_ALL to C if already set.
  438. # These must not be set unconditionally because not all systems understand
  439. # e.g. LANG=C (notably SCO).
  440. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  441. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  442.  
  443. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  444. rm -rf conftest* confdefs.h
  445. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  446. echo > confdefs.h
  447.  
  448. # A filename unique to this package, relative to the directory that
  449. # configure is in, which we can look for to find out if srcdir is correct.
  450. ac_unique_file=src/cvs.h
  451.  
  452. # Find the source files, if location was not specified.
  453. if test -z "$srcdir"; then
  454.   ac_srcdir_defaulted=yes
  455.   # Try the directory containing this script, then its parent.
  456.   ac_prog=$0
  457.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  458.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  459.   srcdir=$ac_confdir
  460.   if test ! -r $srcdir/$ac_unique_file; then
  461.     srcdir=..
  462.   fi
  463. else
  464.   ac_srcdir_defaulted=no
  465. fi
  466. if test ! -r $srcdir/$ac_unique_file; then
  467.   if test "$ac_srcdir_defaulted" = yes; then
  468.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  469.   else
  470.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  471.   fi
  472. fi
  473. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  474.  
  475. # Prefer explicitly selected file to automatically selected ones.
  476. if test -z "$CONFIG_SITE"; then
  477.   if test "x$prefix" != xNONE; then
  478.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  479.   else
  480.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  481.   fi
  482. fi
  483. for ac_site_file in $CONFIG_SITE; do
  484.   if test -r "$ac_site_file"; then
  485.     echo "loading site script $ac_site_file"
  486.     . "$ac_site_file"
  487.   fi
  488. done
  489.  
  490. if test -r "$cache_file"; then
  491.   echo "loading cache $cache_file"
  492.   . $cache_file
  493. else
  494.   echo "creating cache $cache_file"
  495.   > $cache_file
  496. fi
  497.  
  498. ac_ext=c
  499. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  500. ac_cpp='$CPP $CPPFLAGS'
  501. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  502. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  503.  
  504. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  505.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  506.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  507.     ac_n= ac_c='
  508. ' ac_t='    '
  509.   else
  510.     ac_n=-n ac_c= ac_t=
  511.   fi
  512. else
  513.   ac_n= ac_c='\c' ac_t=
  514. fi
  515.  
  516.  
  517.  
  518.  
  519. # Extract the first word of "gcc", so it can be a program name with args.
  520. set dummy gcc; ac_word=$2
  521. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  522. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  523.   echo $ac_n "(cached) $ac_c" 1>&6
  524. else
  525.   if test -n "$CC"; then
  526.   ac_cv_prog_CC="$CC" # Let the user override the test.
  527. else
  528.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  529.   for ac_dir in $PATH; do
  530.     test -z "$ac_dir" && ac_dir=.
  531.     if test -f $ac_dir/$ac_word; then
  532.       ac_cv_prog_CC="gcc"
  533.       break
  534.     fi
  535.   done
  536.   IFS="$ac_save_ifs"
  537. fi
  538. fi
  539. CC="$ac_cv_prog_CC"
  540. if test -n "$CC"; then
  541.   echo "$ac_t""$CC" 1>&6
  542. else
  543.   echo "$ac_t""no" 1>&6
  544. fi
  545.  
  546. if test -z "$CC"; then
  547.   # Extract the first word of "cc", so it can be a program name with args.
  548. set dummy cc; ac_word=$2
  549. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  550. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  551.   echo $ac_n "(cached) $ac_c" 1>&6
  552. else
  553.   if test -n "$CC"; then
  554.   ac_cv_prog_CC="$CC" # Let the user override the test.
  555. else
  556.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  557.   ac_prog_rejected=no
  558.   for ac_dir in $PATH; do
  559.     test -z "$ac_dir" && ac_dir=.
  560.     if test -f $ac_dir/$ac_word; then
  561.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  562.         ac_prog_rejected=yes
  563.     continue
  564.       fi
  565.       ac_cv_prog_CC="cc"
  566.       break
  567.     fi
  568.   done
  569.   IFS="$ac_save_ifs"
  570. if test $ac_prog_rejected = yes; then
  571.   # We found a bogon in the path, so make sure we never use it.
  572.   set dummy $ac_cv_prog_CC
  573.   shift
  574.   if test $# -gt 0; then
  575.     # We chose a different compiler from the bogus one.
  576.     # However, it has the same basename, so the bogon will be chosen
  577.     # first if we set CC to just the basename; use the full file name.
  578.     shift
  579.     set dummy "$ac_dir/$ac_word" "$@"
  580.     shift
  581.     ac_cv_prog_CC="$@"
  582.   fi
  583. fi
  584. fi
  585. fi
  586. CC="$ac_cv_prog_CC"
  587. if test -n "$CC"; then
  588.   echo "$ac_t""$CC" 1>&6
  589. else
  590.   echo "$ac_t""no" 1>&6
  591. fi
  592.  
  593.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  594. fi
  595.  
  596. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  597. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  598.   echo $ac_n "(cached) $ac_c" 1>&6
  599. else
  600.   cat > conftest.c <<EOF
  601. #ifdef __GNUC__
  602.   yes;
  603. #endif
  604. EOF
  605. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  606.   ac_cv_prog_gcc=yes
  607. else
  608.   ac_cv_prog_gcc=no
  609. fi
  610. fi
  611.  
  612. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  613. if test $ac_cv_prog_gcc = yes; then
  614.   GCC=yes
  615.   if test "${CFLAGS+set}" != set; then
  616.     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  617. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  618.   echo $ac_n "(cached) $ac_c" 1>&6
  619. else
  620.   echo 'void f(){}' > conftest.c
  621. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  622.   ac_cv_prog_gcc_g=yes
  623. else
  624.   ac_cv_prog_gcc_g=no
  625. fi
  626. rm -f conftest*
  627.  
  628. fi
  629.  
  630. echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  631.     if test $ac_cv_prog_gcc_g = yes; then
  632.       CFLAGS="-g -O"
  633.     else
  634.       CFLAGS="-O"
  635.     fi
  636.   fi
  637. else
  638.   GCC=
  639.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  640. fi
  641.  
  642.  
  643. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  644. # On Suns, sometimes $CPP names a directory.
  645. if test -n "$CPP" && test -d "$CPP"; then
  646.   CPP=
  647. fi
  648. if test -z "$CPP"; then
  649. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  650.   echo $ac_n "(cached) $ac_c" 1>&6
  651. else
  652.     # This must be in double quotes, not single quotes, because CPP may get
  653.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  654.   CPP="${CC-cc} -E"
  655.   # On the NeXT, cc -E runs the code through the compiler's parser,
  656.   # not just through cpp.
  657.   cat > conftest.$ac_ext <<EOF
  658. #line 659 "configure"
  659. #include "confdefs.h"
  660. #include <assert.h>
  661. Syntax Error
  662. EOF
  663. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  664. { (eval echo configure:665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  665. ac_err=`grep -v '^ *+' conftest.out`
  666. if test -z "$ac_err"; then
  667.   :
  668. else
  669.   echo "$ac_err" >&5
  670.   rm -rf conftest*
  671.   CPP="${CC-cc} -E -traditional-cpp"
  672.   cat > conftest.$ac_ext <<EOF
  673. #line 674 "configure"
  674. #include "confdefs.h"
  675. #include <assert.h>
  676. Syntax Error
  677. EOF
  678. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  679. { (eval echo configure:680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  680. ac_err=`grep -v '^ *+' conftest.out`
  681. if test -z "$ac_err"; then
  682.   :
  683. else
  684.   echo "$ac_err" >&5
  685.   rm -rf conftest*
  686.   CPP=/lib/cpp
  687. fi
  688. rm -f conftest*
  689. fi
  690. rm -f conftest*
  691.   ac_cv_prog_CPP="$CPP"
  692. fi
  693.   CPP="$ac_cv_prog_CPP"
  694. else
  695.   ac_cv_prog_CPP="$CPP"
  696. fi
  697. echo "$ac_t""$CPP" 1>&6
  698.  
  699. echo $ac_n "checking for AIX""... $ac_c" 1>&6
  700. cat > conftest.$ac_ext <<EOF
  701. #line 702 "configure"
  702. #include "confdefs.h"
  703. #ifdef _AIX
  704.   yes
  705. #endif
  706.  
  707. EOF
  708. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  709.   egrep "yes" >/dev/null 2>&1; then
  710.   rm -rf conftest*
  711.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  712. #define _ALL_SOURCE 1
  713. EOF
  714.  
  715. else
  716.   rm -rf conftest*
  717.   echo "$ac_t""no" 1>&6
  718. fi
  719. rm -f conftest*
  720.  
  721.  
  722. ac_safe=`echo "minix/config.h" | tr './\055' '___'`
  723. echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  724. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  725.   echo $ac_n "(cached) $ac_c" 1>&6
  726. else
  727.   cat > conftest.$ac_ext <<EOF
  728. #line 729 "configure"
  729. #include "confdefs.h"
  730. #include <minix/config.h>
  731. EOF
  732. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  733. { (eval echo configure:734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  734. ac_err=`grep -v '^ *+' conftest.out`
  735. if test -z "$ac_err"; then
  736.   rm -rf conftest*
  737.   eval "ac_cv_header_$ac_safe=yes"
  738. else
  739.   echo "$ac_err" >&5
  740.   rm -rf conftest*
  741.   eval "ac_cv_header_$ac_safe=no"
  742. fi
  743. rm -f conftest*
  744. fi
  745. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  746.   echo "$ac_t""yes" 1>&6
  747.   MINIX=yes
  748. else
  749.   echo "$ac_t""no" 1>&6
  750. MINIX=
  751. fi
  752.  
  753. if test "$MINIX" = yes; then
  754.   cat >> confdefs.h <<\EOF
  755. #define _POSIX_SOURCE 1
  756. EOF
  757.  
  758.   cat >> confdefs.h <<\EOF
  759. #define _POSIX_1_SOURCE 2
  760. EOF
  761.  
  762.   cat >> confdefs.h <<\EOF
  763. #define _MINIX 1
  764. EOF
  765.  
  766. fi
  767.  
  768. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  769. if test -d /etc/conf/kconfig.d &&
  770.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  771. then
  772.   echo "$ac_t""yes" 1>&6
  773.   ISC=yes # If later tests want to check for ISC.
  774.   cat >> confdefs.h <<\EOF
  775. #define _POSIX_SOURCE 1
  776. EOF
  777.  
  778.   if test "$GCC" = yes; then
  779.     CC="$CC -posix"
  780.   else
  781.     CC="$CC -Xp"
  782.   fi
  783. else
  784.   echo "$ac_t""no" 1>&6
  785.   ISC=
  786. fi
  787.  
  788. if test "$ISC" = yes; then
  789. CFLAGS="$CFLAGS -D_SYSV3"
  790. fi
  791.  
  792. if test "x$prefix" = xNONE; then
  793. echo $ac_n "checking for prefix by ""... $ac_c" 1>&6
  794. # Extract the first word of "cvs", so it can be a program name with args.
  795. set dummy cvs; ac_word=$2
  796. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  797. if eval "test \"`echo '$''{'ac_cv_path_CVS'+set}'`\" = set"; then
  798.   echo $ac_n "(cached) $ac_c" 1>&6
  799. else
  800.   case "$CVS" in
  801.   /*)
  802.   ac_cv_path_CVS="$CVS" # Let the user override the test with a path.
  803.   ;;
  804.   *)
  805.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  806.   for ac_dir in $PATH; do
  807.     test -z "$ac_dir" && ac_dir=.
  808.     if test -f $ac_dir/$ac_word; then
  809.       ac_cv_path_CVS="$ac_dir/$ac_word"
  810.       break
  811.     fi
  812.   done
  813.   IFS="$ac_save_ifs"
  814.   ;;
  815. esac
  816. fi
  817. CVS="$ac_cv_path_CVS"
  818. if test -n "$CVS"; then
  819.   echo "$ac_t""$CVS" 1>&6
  820. else
  821.   echo "$ac_t""no" 1>&6
  822. fi
  823.  
  824.   if test -n "$ac_cv_path_CVS"; then
  825.     prefix=`echo $ac_cv_path_CVS|sed 's%/[^/][^/]*//*[^/][^/]*$%%'`
  826.   fi
  827. fi
  828.  
  829.  
  830. # If we cannot run a trivial program, we must be cross compiling.
  831. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  832. if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  833.   echo $ac_n "(cached) $ac_c" 1>&6
  834. else
  835.   if test "$cross_compiling" = yes; then
  836.   ac_cv_c_cross=yes
  837. else
  838. cat > conftest.$ac_ext <<EOF
  839. #line 840 "configure"
  840. #include "confdefs.h"
  841. main(){return(0);}
  842. EOF
  843. { (eval echo configure:844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  844. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  845.   ac_cv_c_cross=no
  846. else
  847.   ac_cv_c_cross=yes
  848. fi
  849. fi
  850. rm -fr conftest*
  851. fi
  852.  
  853. echo "$ac_t""$ac_cv_c_cross" 1>&6
  854. cross_compiling=$ac_cv_c_cross
  855.  
  856.  
  857. echo $ac_n "checking for working const""... $ac_c" 1>&6
  858. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  859.   echo $ac_n "(cached) $ac_c" 1>&6
  860. else
  861.   cat > conftest.$ac_ext <<EOF
  862. #line 863 "configure"
  863. #include "confdefs.h"
  864.  
  865. int main() { return 0; }
  866. int t() {
  867.  
  868. /* Ultrix mips cc rejects this.  */
  869. typedef int charset[2]; const charset x;
  870. /* SunOS 4.1.1 cc rejects this.  */
  871. char const *const *ccp;
  872. char **p;
  873. /* NEC SVR4.0.2 mips cc rejects this.  */
  874. struct point {int x, y;};
  875. static struct point const zero = {0,0};
  876. /* AIX XL C 1.02.0.0 rejects this.
  877.    It does not let you subtract one const X* pointer from another in an arm
  878.    of an if-expression whose if-part is not a constant expression */
  879. const char *g = "string";
  880. ccp = &g + (g ? g-g : 0);
  881. /* HPUX 7.0 cc rejects these. */
  882. ++ccp;
  883. p = (char**) ccp;
  884. ccp = (char const *const *) p;
  885. { /* SCO 3.2v4 cc rejects this.  */
  886.   char *t;
  887.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  888.  
  889.   *t++ = 0;
  890. }
  891. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  892.   int x[] = {25, 17};
  893.   const int *foo = &x[0];
  894.   ++foo;
  895. }
  896. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  897.   typedef const int *iptr;
  898.   iptr p = 0;
  899.   ++p;
  900. }
  901. { /* AIX XL C 1.02.0.0 rejects this saying
  902.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  903.   struct s { int j; const int *ap[3]; };
  904.   struct s *b; b->j = 5;
  905. }
  906. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  907.   const int foo = 10;
  908. }
  909.  
  910. ; return 0; }
  911. EOF
  912. if { (eval echo configure:913: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  913.   rm -rf conftest*
  914.   ac_cv_c_const=yes
  915. else
  916.   rm -rf conftest*
  917.   ac_cv_c_const=no
  918. fi
  919. rm -f conftest*
  920.  
  921. fi
  922.  
  923. echo "$ac_t""$ac_cv_c_const" 1>&6
  924. if test $ac_cv_c_const = no; then
  925.   cat >> confdefs.h <<\EOF
  926. #define const 
  927. EOF
  928.  
  929. fi
  930.  
  931. echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
  932. if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
  933.   echo $ac_n "(cached) $ac_c" 1>&6
  934. else
  935.   if test "$GCC" = yes; then
  936.   # GCC predefines this symbol on systems where it applies.
  937. cat > conftest.$ac_ext <<EOF
  938. #line 939 "configure"
  939. #include "confdefs.h"
  940. #ifdef __CHAR_UNSIGNED__
  941.   yes
  942. #endif
  943.  
  944. EOF
  945. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  946.   egrep "yes" >/dev/null 2>&1; then
  947.   rm -rf conftest*
  948.   ac_cv_c_char_unsigned=yes
  949. else
  950.   rm -rf conftest*
  951.   ac_cv_c_char_unsigned=no
  952. fi
  953. rm -f conftest*
  954.  
  955. else
  956. if test "$cross_compiling" = yes; then
  957.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  958. else
  959. cat > conftest.$ac_ext <<EOF
  960. #line 961 "configure"
  961. #include "confdefs.h"
  962. /* volatile prevents gcc2 from optimizing the test away on sparcs.  */
  963. #if !defined(__STDC__) || __STDC__ != 1
  964. #define volatile
  965. #endif
  966. main() {
  967.   volatile char c = 255; exit(c < 0);
  968. }
  969. EOF
  970. { (eval echo configure:971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  971. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  972.   ac_cv_c_char_unsigned=yes
  973. else
  974.   ac_cv_c_char_unsigned=no
  975. fi
  976. fi
  977. rm -fr conftest*
  978. fi
  979. fi
  980.  
  981. echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
  982. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  983.   cat >> confdefs.h <<\EOF
  984. #define __CHAR_UNSIGNED__ 1
  985. EOF
  986.  
  987. fi
  988.  
  989. echo $ac_n "checking for inline""... $ac_c" 1>&6
  990. if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  991.   echo $ac_n "(cached) $ac_c" 1>&6
  992. else
  993.   ac_cv_c_inline=no
  994. for ac_kw in inline __inline__ __inline; do
  995.   cat > conftest.$ac_ext <<EOF
  996. #line 997 "configure"
  997. #include "confdefs.h"
  998.  
  999. int main() { return 0; }
  1000. int t() {
  1001. } $ac_kw foo() {
  1002. ; return 0; }
  1003. EOF
  1004. if { (eval echo configure:1005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1005.   rm -rf conftest*
  1006.   ac_cv_c_inline=$ac_kw; break
  1007. fi
  1008. rm -f conftest*
  1009.  
  1010. done
  1011.  
  1012. fi
  1013.  
  1014. echo "$ac_t""$ac_cv_c_inline" 1>&6
  1015. case "$ac_cv_c_inline" in
  1016.   inline | yes) ;;
  1017.   no) cat >> confdefs.h <<\EOF
  1018. #define inline 
  1019. EOF
  1020.  ;;
  1021.   *)  cat >> confdefs.h <<EOF
  1022. #define inline $ac_cv_c_inline
  1023. EOF
  1024.  ;;
  1025. esac
  1026.  
  1027.  
  1028. ac_aux_dir=
  1029. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1030.   if test -f $ac_dir/install-sh; then
  1031.     ac_aux_dir=$ac_dir
  1032.     ac_install_sh="$ac_aux_dir/install-sh -c"
  1033.     break
  1034.   elif test -f $ac_dir/install.sh; then
  1035.     ac_aux_dir=$ac_dir
  1036.     ac_install_sh="$ac_aux_dir/install.sh -c"
  1037.     break
  1038.   fi
  1039. done
  1040. if test -z "$ac_aux_dir"; then
  1041.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  1042. fi
  1043. ac_config_guess=$ac_aux_dir/config.guess
  1044. ac_config_sub=$ac_aux_dir/config.sub
  1045. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  1046.  
  1047. # Find a good install program.  We prefer a C program (faster),
  1048. # so one script is as good as another.  But avoid the broken or
  1049. # incompatible versions:
  1050. # SysV /etc/install, /usr/sbin/install
  1051. # SunOS /usr/etc/install
  1052. # IRIX /sbin/install
  1053. # AIX /bin/install
  1054. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1055. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1056. # ./install, which can be erroneously created by make from ./install.sh.
  1057. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  1058. if test -z "$INSTALL"; then
  1059. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  1060.   echo $ac_n "(cached) $ac_c" 1>&6
  1061. else
  1062.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1063.   for ac_dir in $PATH; do
  1064.     # Account for people who put trailing slashes in PATH elements.
  1065.     case "$ac_dir/" in
  1066.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  1067.     *)
  1068.       # OSF1 and SCO ODT 3.0 have their own names for install.
  1069.       for ac_prog in ginstall installbsd scoinst install; do
  1070.         if test -f $ac_dir/$ac_prog; then
  1071.       if test $ac_prog = install &&
  1072.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1073.         # AIX install.  It has an incompatible calling convention.
  1074.         # OSF/1 installbsd also uses dspmsg, but is usable.
  1075.         :
  1076.       else
  1077.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  1078.         break 2
  1079.       fi
  1080.     fi
  1081.       done
  1082.       ;;
  1083.     esac
  1084.   done
  1085.   IFS="$ac_save_ifs"
  1086.  
  1087. fi
  1088.   if test "${ac_cv_path_install+set}" = set; then
  1089.     INSTALL="$ac_cv_path_install"
  1090.   else
  1091.     # As a last resort, use the slow shell script.  We don't cache a
  1092.     # path for INSTALL within a source directory, because that will
  1093.     # break other packages using the cache if that directory is
  1094.     # removed, or if the path is relative.
  1095.     INSTALL="$ac_install_sh"
  1096.   fi
  1097. fi
  1098. echo "$ac_t""$INSTALL" 1>&6
  1099.  
  1100. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1101. # It thinks the first close brace ends the variable substitution.
  1102. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1103.  
  1104. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1105.  
  1106. # Extract the first word of "ranlib", so it can be a program name with args.
  1107. set dummy ranlib; ac_word=$2
  1108. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1109. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  1110.   echo $ac_n "(cached) $ac_c" 1>&6
  1111. else
  1112.   if test -n "$RANLIB"; then
  1113.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1114. else
  1115.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1116.   for ac_dir in $PATH; do
  1117.     test -z "$ac_dir" && ac_dir=.
  1118.     if test -f $ac_dir/$ac_word; then
  1119.       ac_cv_prog_RANLIB="ranlib"
  1120.       break
  1121.     fi
  1122.   done
  1123.   IFS="$ac_save_ifs"
  1124.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  1125. fi
  1126. fi
  1127. RANLIB="$ac_cv_prog_RANLIB"
  1128. if test -n "$RANLIB"; then
  1129.   echo "$ac_t""$RANLIB" 1>&6
  1130. else
  1131.   echo "$ac_t""no" 1>&6
  1132. fi
  1133.  
  1134. for ac_prog in 'bison -y' byacc
  1135. do
  1136. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1137. set dummy $ac_prog; ac_word=$2
  1138. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1139. if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
  1140.   echo $ac_n "(cached) $ac_c" 1>&6
  1141. else
  1142.   if test -n "$YACC"; then
  1143.   ac_cv_prog_YACC="$YACC" # Let the user override the test.
  1144. else
  1145.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1146.   for ac_dir in $PATH; do
  1147.     test -z "$ac_dir" && ac_dir=.
  1148.     if test -f $ac_dir/$ac_word; then
  1149.       ac_cv_prog_YACC="$ac_prog"
  1150.       break
  1151.     fi
  1152.   done
  1153.   IFS="$ac_save_ifs"
  1154. fi
  1155. fi
  1156. YACC="$ac_cv_prog_YACC"
  1157. if test -n "$YACC"; then
  1158.   echo "$ac_t""$YACC" 1>&6
  1159. else
  1160.   echo "$ac_t""no" 1>&6
  1161. fi
  1162.  
  1163. test -n "$YACC" && break
  1164. done
  1165. test -n "$YACC" || YACC="yacc"
  1166.  
  1167. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  1168. set dummy ${MAKE-make}; ac_make=$2
  1169. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  1170.   echo $ac_n "(cached) $ac_c" 1>&6
  1171. else
  1172.   cat > conftestmake <<\EOF
  1173. all:
  1174.     @echo 'ac_maketemp="${MAKE}"'
  1175. EOF
  1176. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1177. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  1178. if test -n "$ac_maketemp"; then
  1179.   eval ac_cv_prog_make_${ac_make}_set=yes
  1180. else
  1181.   eval ac_cv_prog_make_${ac_make}_set=no
  1182. fi
  1183. rm -f conftestmake
  1184. fi
  1185. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1186.   echo "$ac_t""yes" 1>&6
  1187.   SET_MAKE=
  1188. else
  1189.   echo "$ac_t""no" 1>&6
  1190.   SET_MAKE="MAKE=${MAKE-make}"
  1191. fi
  1192.  
  1193.  
  1194. # Extract the first word of "perl", so it can be a program name with args.
  1195. set dummy perl; ac_word=$2
  1196. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1197. if eval "test \"`echo '$''{'ac_cv_path_perl_path'+set}'`\" = set"; then
  1198.   echo $ac_n "(cached) $ac_c" 1>&6
  1199. else
  1200.   case "$perl_path" in
  1201.   /*)
  1202.   ac_cv_path_perl_path="$perl_path" # Let the user override the test with a path.
  1203.   ;;
  1204.   *)
  1205.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1206.   for ac_dir in $PATH; do
  1207.     test -z "$ac_dir" && ac_dir=.
  1208.     if test -f $ac_dir/$ac_word; then
  1209.       ac_cv_path_perl_path="$ac_dir/$ac_word"
  1210.       break
  1211.     fi
  1212.   done
  1213.   IFS="$ac_save_ifs"
  1214.   test -z "$ac_cv_path_perl_path" && ac_cv_path_perl_path="no"
  1215.   ;;
  1216. esac
  1217. fi
  1218. perl_path="$ac_cv_path_perl_path"
  1219. if test -n "$perl_path"; then
  1220.   echo "$ac_t""$perl_path" 1>&6
  1221. else
  1222.   echo "$ac_t""no" 1>&6
  1223. fi
  1224.  
  1225. # Extract the first word of "csh", so it can be a program name with args.
  1226. set dummy csh; ac_word=$2
  1227. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1228. if eval "test \"`echo '$''{'ac_cv_path_csh_path'+set}'`\" = set"; then
  1229.   echo $ac_n "(cached) $ac_c" 1>&6
  1230. else
  1231.   case "$csh_path" in
  1232.   /*)
  1233.   ac_cv_path_csh_path="$csh_path" # Let the user override the test with a path.
  1234.   ;;
  1235.   *)
  1236.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1237.   for ac_dir in $PATH; do
  1238.     test -z "$ac_dir" && ac_dir=.
  1239.     if test -f $ac_dir/$ac_word; then
  1240.       ac_cv_path_csh_path="$ac_dir/$ac_word"
  1241.       break
  1242.     fi
  1243.   done
  1244.   IFS="$ac_save_ifs"
  1245.   test -z "$ac_cv_path_csh_path" && ac_cv_path_csh_path="no"
  1246.   ;;
  1247. esac
  1248. fi
  1249. csh_path="$ac_cv_path_csh_path"
  1250. if test -n "$csh_path"; then
  1251.   echo "$ac_t""$csh_path" 1>&6
  1252. else
  1253.   echo "$ac_t""no" 1>&6
  1254. fi
  1255.  
  1256.  
  1257. # Pull the hash mark out of the macro call to avoid m4 problems.
  1258. ac_msg="whether #! works in shell scripts"
  1259. echo $ac_n "checking $ac_msg""... $ac_c" 1>&6
  1260. if eval "test \"`echo '$''{'ac_cv_sys_interpreter'+set}'`\" = set"; then
  1261.   echo $ac_n "(cached) $ac_c" 1>&6
  1262. else
  1263.   echo '#! /bin/cat
  1264. exit 69
  1265. ' > conftest
  1266. chmod u+x conftest
  1267. (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null)
  1268. if test $? -ne 69; then
  1269.    ac_cv_sys_interpreter=yes
  1270. else
  1271.    ac_cv_sys_interpreter=no
  1272. fi
  1273. rm -f conftest
  1274. fi
  1275.  
  1276. echo "$ac_t""$ac_cv_sys_interpreter" 1>&6
  1277.  
  1278. if test X"$ac_cv_sys_interpreter" != X"yes" ; then
  1279.   # silly trick to avoid problems in AC macros...
  1280.   ac_msg='perl scripts using #! may not be invoked properly'
  1281.   echo "configure: warning: $ac_msg" 1>&2
  1282. fi
  1283.  
  1284. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1285. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1286.   echo $ac_n "(cached) $ac_c" 1>&6
  1287. else
  1288.   cat > conftest.$ac_ext <<EOF
  1289. #line 1290 "configure"
  1290. #include "confdefs.h"
  1291. #include <stdlib.h>
  1292. #include <stdarg.h>
  1293. #include <string.h>
  1294. #include <float.h>
  1295. EOF
  1296. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1297. { (eval echo configure:1298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1298. ac_err=`grep -v '^ *+' conftest.out`
  1299. if test -z "$ac_err"; then
  1300.   rm -rf conftest*
  1301.   ac_cv_header_stdc=yes
  1302. else
  1303.   echo "$ac_err" >&5
  1304.   rm -rf conftest*
  1305.   ac_cv_header_stdc=no
  1306. fi
  1307. rm -f conftest*
  1308.  
  1309. if test $ac_cv_header_stdc = yes; then
  1310.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1311. cat > conftest.$ac_ext <<EOF
  1312. #line 1313 "configure"
  1313. #include "confdefs.h"
  1314. #include <string.h>
  1315. EOF
  1316. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1317.   egrep "memchr" >/dev/null 2>&1; then
  1318.   :
  1319. else
  1320.   rm -rf conftest*
  1321.   ac_cv_header_stdc=no
  1322. fi
  1323. rm -f conftest*
  1324.  
  1325. fi
  1326.  
  1327. if test $ac_cv_header_stdc = yes; then
  1328.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1329. cat > conftest.$ac_ext <<EOF
  1330. #line 1331 "configure"
  1331. #include "confdefs.h"
  1332. #include <stdlib.h>
  1333. EOF
  1334. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1335.   egrep "free" >/dev/null 2>&1; then
  1336.   :
  1337. else
  1338.   rm -rf conftest*
  1339.   ac_cv_header_stdc=no
  1340. fi
  1341. rm -f conftest*
  1342.  
  1343. fi
  1344.  
  1345. if test $ac_cv_header_stdc = yes; then
  1346.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1347. if test "$cross_compiling" = yes; then
  1348.   :
  1349. else
  1350. cat > conftest.$ac_ext <<EOF
  1351. #line 1352 "configure"
  1352. #include "confdefs.h"
  1353. #include <ctype.h>
  1354. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1355. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1356. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1357. int main () { int i; for (i = 0; i < 256; i++)
  1358. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1359. exit (0); }
  1360.  
  1361. EOF
  1362. { (eval echo configure:1363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1363. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1364.   :
  1365. else
  1366.   ac_cv_header_stdc=no
  1367. fi
  1368. fi
  1369. rm -fr conftest*
  1370. fi
  1371. fi
  1372.  
  1373. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1374. if test $ac_cv_header_stdc = yes; then
  1375.   cat >> confdefs.h <<\EOF
  1376. #define STDC_HEADERS 1
  1377. EOF
  1378.  
  1379. fi
  1380.  
  1381. for ac_hdr in errno.h unistd.h string.h memory.h utime.h fcntl.h ndbm.h \
  1382.                  sys/param.h sys/select.h sys/time.h sys/timeb.h \
  1383.                  io.h direct.h sys/bsdtypes.h sys/resource.h
  1384. do
  1385. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1386. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1387. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1388.   echo $ac_n "(cached) $ac_c" 1>&6
  1389. else
  1390.   cat > conftest.$ac_ext <<EOF
  1391. #line 1392 "configure"
  1392. #include "confdefs.h"
  1393. #include <$ac_hdr>
  1394. EOF
  1395. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1396. { (eval echo configure:1397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1397. ac_err=`grep -v '^ *+' conftest.out`
  1398. if test -z "$ac_err"; then
  1399.   rm -rf conftest*
  1400.   eval "ac_cv_header_$ac_safe=yes"
  1401. else
  1402.   echo "$ac_err" >&5
  1403.   rm -rf conftest*
  1404.   eval "ac_cv_header_$ac_safe=no"
  1405. fi
  1406. rm -f conftest*
  1407. fi
  1408. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1409.   echo "$ac_t""yes" 1>&6
  1410.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1411.   cat >> confdefs.h <<EOF
  1412. #define $ac_tr_hdr 1
  1413. EOF
  1414.  
  1415. else
  1416.   echo "$ac_t""no" 1>&6
  1417. fi
  1418. done
  1419.  
  1420. echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
  1421. if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
  1422.   echo $ac_n "(cached) $ac_c" 1>&6
  1423. else
  1424.   cat > conftest.$ac_ext <<EOF
  1425. #line 1426 "configure"
  1426. #include "confdefs.h"
  1427. #include <sys/types.h>
  1428. #include <sys/wait.h>
  1429. #ifndef WEXITSTATUS
  1430. #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  1431. #endif
  1432. #ifndef WIFEXITED
  1433. #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  1434. #endif
  1435. int main() { return 0; }
  1436. int t() {
  1437. int s;
  1438. wait (&s);
  1439. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  1440. ; return 0; }
  1441. EOF
  1442. if { (eval echo configure:1443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1443.   rm -rf conftest*
  1444.   ac_cv_header_sys_wait_h=yes
  1445. else
  1446.   rm -rf conftest*
  1447.   ac_cv_header_sys_wait_h=no
  1448. fi
  1449. rm -f conftest*
  1450.  
  1451. fi
  1452.  
  1453. echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
  1454. if test $ac_cv_header_sys_wait_h = yes; then
  1455.   cat >> confdefs.h <<\EOF
  1456. #define HAVE_SYS_WAIT_H 1
  1457. EOF
  1458.  
  1459. fi
  1460.  
  1461. echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
  1462. if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
  1463.   echo $ac_n "(cached) $ac_c" 1>&6
  1464. else
  1465.   cat > conftest.$ac_ext <<EOF
  1466. #line 1467 "configure"
  1467. #include "confdefs.h"
  1468. #include <sys/types.h>
  1469. #include <sys/stat.h>
  1470.  
  1471. #if defined(S_ISBLK) && defined(S_IFDIR)
  1472. # if S_ISBLK (S_IFDIR)
  1473. You lose.
  1474. # endif
  1475. #endif
  1476.  
  1477. #if defined(S_ISBLK) && defined(S_IFCHR)
  1478. # if S_ISBLK (S_IFCHR)
  1479. You lose.
  1480. # endif
  1481. #endif
  1482.  
  1483. #if defined(S_ISLNK) && defined(S_IFREG)
  1484. # if S_ISLNK (S_IFREG)
  1485. You lose.
  1486. # endif
  1487. #endif
  1488.  
  1489. #if defined(S_ISSOCK) && defined(S_IFREG)
  1490. # if S_ISSOCK (S_IFREG)
  1491. You lose.
  1492. # endif
  1493. #endif
  1494.  
  1495. EOF
  1496. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1497.   egrep "You lose" >/dev/null 2>&1; then
  1498.   rm -rf conftest*
  1499.   ac_cv_header_stat_broken=yes
  1500. else
  1501.   rm -rf conftest*
  1502.   ac_cv_header_stat_broken=no
  1503. fi
  1504. rm -f conftest*
  1505.  
  1506. fi
  1507.  
  1508. echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
  1509. if test $ac_cv_header_stat_broken = yes; then
  1510.   cat >> confdefs.h <<\EOF
  1511. #define STAT_MACROS_BROKEN 1
  1512. EOF
  1513.  
  1514. fi
  1515.  
  1516. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  1517. if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  1518.   echo $ac_n "(cached) $ac_c" 1>&6
  1519. else
  1520.   cat > conftest.$ac_ext <<EOF
  1521. #line 1522 "configure"
  1522. #include "confdefs.h"
  1523. #include <sys/types.h>
  1524. #include <sys/time.h>
  1525. #include <time.h>
  1526. int main() { return 0; }
  1527. int t() {
  1528. struct tm *tp;
  1529. ; return 0; }
  1530. EOF
  1531. if { (eval echo configure:1532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1532.   rm -rf conftest*
  1533.   ac_cv_header_time=yes
  1534. else
  1535.   rm -rf conftest*
  1536.   ac_cv_header_time=no
  1537. fi
  1538. rm -f conftest*
  1539.  
  1540. fi
  1541.  
  1542. echo "$ac_t""$ac_cv_header_time" 1>&6
  1543. if test $ac_cv_header_time = yes; then
  1544.   cat >> confdefs.h <<\EOF
  1545. #define TIME_WITH_SYS_TIME 1
  1546. EOF
  1547.  
  1548. fi
  1549.  
  1550. ac_header_dirent=no
  1551. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  1552. do
  1553. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1554. echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  1555. if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  1556.   echo $ac_n "(cached) $ac_c" 1>&6
  1557. else
  1558.   cat > conftest.$ac_ext <<EOF
  1559. #line 1560 "configure"
  1560. #include "confdefs.h"
  1561. #include <sys/types.h>
  1562. #include <$ac_hdr>
  1563. int main() { return 0; }
  1564. int t() {
  1565. DIR *dirp = 0;
  1566. ; return 0; }
  1567. EOF
  1568. if { (eval echo configure:1569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1569.   rm -rf conftest*
  1570.   eval "ac_cv_header_dirent_$ac_safe=yes"
  1571. else
  1572.   rm -rf conftest*
  1573.   eval "ac_cv_header_dirent_$ac_safe=no"
  1574. fi
  1575. rm -f conftest*
  1576.  
  1577. fi
  1578. if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  1579.   echo "$ac_t""yes" 1>&6
  1580.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdedfghijklmnopqrstuvwxyz./\055' 'ABCDEDFGHIJKLMNOPQRSTUVWXYZ___'`
  1581.   cat >> confdefs.h <<EOF
  1582. #define $ac_tr_hdr 1
  1583. EOF
  1584.  ac_header_dirent=$ac_hdr; break
  1585. else
  1586.   echo "$ac_t""no" 1>&6
  1587. fi
  1588. done
  1589. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  1590. if test $ac_header_dirent = dirent.h; then
  1591. echo $ac_n "checking for -ldir""... $ac_c" 1>&6
  1592. ac_lib_var=`echo dir_opendir | tr '.-/+' '___p'`
  1593. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1594.   echo $ac_n "(cached) $ac_c" 1>&6
  1595. else
  1596.   ac_save_LIBS="$LIBS"
  1597. LIBS="-ldir  $LIBS"
  1598. cat > conftest.$ac_ext <<EOF
  1599. #line 1600 "configure"
  1600. #include "confdefs.h"
  1601. /* Override any gcc2 internal prototype to avoid an error.  */
  1602. char opendir();
  1603.  
  1604. int main() { return 0; }
  1605. int t() {
  1606. opendir()
  1607. ; return 0; }
  1608. EOF
  1609. if { (eval echo configure:1610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1610.   rm -rf conftest*
  1611.   eval "ac_cv_lib_$ac_lib_var=yes"
  1612. else
  1613.   rm -rf conftest*
  1614.   eval "ac_cv_lib_$ac_lib_var=no"
  1615. fi
  1616. rm -f conftest*
  1617. LIBS="$ac_save_LIBS"
  1618.  
  1619. fi
  1620. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1621.   echo "$ac_t""yes" 1>&6
  1622.   LIBS="$LIBS -ldir"
  1623. else
  1624.   echo "$ac_t""no" 1>&6
  1625. fi
  1626.  
  1627. else
  1628. echo $ac_n "checking for -lx""... $ac_c" 1>&6
  1629. ac_lib_var=`echo x_opendir | tr '.-/+' '___p'`
  1630. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1631.   echo $ac_n "(cached) $ac_c" 1>&6
  1632. else
  1633.   ac_save_LIBS="$LIBS"
  1634. LIBS="-lx  $LIBS"
  1635. cat > conftest.$ac_ext <<EOF
  1636. #line 1637 "configure"
  1637. #include "confdefs.h"
  1638. /* Override any gcc2 internal prototype to avoid an error.  */
  1639. char opendir();
  1640.  
  1641. int main() { return 0; }
  1642. int t() {
  1643. opendir()
  1644. ; return 0; }
  1645. EOF
  1646. if { (eval echo configure:1647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1647.   rm -rf conftest*
  1648.   eval "ac_cv_lib_$ac_lib_var=yes"
  1649. else
  1650.   rm -rf conftest*
  1651.   eval "ac_cv_lib_$ac_lib_var=no"
  1652. fi
  1653. rm -f conftest*
  1654. LIBS="$ac_save_LIBS"
  1655.  
  1656. fi
  1657. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1658.   echo "$ac_t""yes" 1>&6
  1659.   LIBS="$LIBS -lx"
  1660. else
  1661.   echo "$ac_t""no" 1>&6
  1662. fi
  1663.  
  1664. fi
  1665.  
  1666. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  1667. if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  1668.   echo $ac_n "(cached) $ac_c" 1>&6
  1669. else
  1670.   cat > conftest.$ac_ext <<EOF
  1671. #line 1672 "configure"
  1672. #include "confdefs.h"
  1673. #include <sys/types.h>
  1674. #include <signal.h>
  1675. #ifdef signal
  1676. #undef signal
  1677. #endif
  1678. #ifdef __cplusplus
  1679. extern "C" void (*signal (int, void (*)(int)))(int);
  1680. #else
  1681. void (*signal ()) ();
  1682. #endif
  1683.  
  1684. int main() { return 0; }
  1685. int t() {
  1686. int i;
  1687. ; return 0; }
  1688. EOF
  1689. if { (eval echo configure:1690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1690.   rm -rf conftest*
  1691.   ac_cv_type_signal=void
  1692. else
  1693.   rm -rf conftest*
  1694.   ac_cv_type_signal=int
  1695. fi
  1696. rm -f conftest*
  1697.  
  1698. fi
  1699.  
  1700. echo "$ac_t""$ac_cv_type_signal" 1>&6
  1701. cat >> confdefs.h <<EOF
  1702. #define RETSIGTYPE $ac_cv_type_signal
  1703. EOF
  1704.  
  1705.  
  1706. echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
  1707. if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
  1708.   echo $ac_n "(cached) $ac_c" 1>&6
  1709. else
  1710.   cat > conftest.$ac_ext <<EOF
  1711. #line 1712 "configure"
  1712. #include "confdefs.h"
  1713. #include <sys/types.h>
  1714. EOF
  1715. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1716.   egrep "uid_t" >/dev/null 2>&1; then
  1717.   rm -rf conftest*
  1718.   ac_cv_type_uid_t=yes
  1719. else
  1720.   rm -rf conftest*
  1721.   ac_cv_type_uid_t=no
  1722. fi
  1723. rm -f conftest*
  1724.  
  1725. fi
  1726.  
  1727. echo "$ac_t""$ac_cv_type_uid_t" 1>&6
  1728. if test $ac_cv_type_uid_t = no; then
  1729.   cat >> confdefs.h <<\EOF
  1730. #define uid_t int
  1731. EOF
  1732.  
  1733.   cat >> confdefs.h <<\EOF
  1734. #define gid_t int
  1735. EOF
  1736.  
  1737. fi
  1738.  
  1739. echo $ac_n "checking for mode_t""... $ac_c" 1>&6
  1740. if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
  1741.   echo $ac_n "(cached) $ac_c" 1>&6
  1742. else
  1743.   cat > conftest.$ac_ext <<EOF
  1744. #line 1745 "configure"
  1745. #include "confdefs.h"
  1746. #include <sys/types.h>
  1747. #if STDC_HEADERS
  1748. #include <stdlib.h>
  1749. #endif
  1750. EOF
  1751. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1752.   egrep "mode_t" >/dev/null 2>&1; then
  1753.   rm -rf conftest*
  1754.   ac_cv_type_mode_t=yes
  1755. else
  1756.   rm -rf conftest*
  1757.   ac_cv_type_mode_t=no
  1758. fi
  1759. rm -f conftest*
  1760.  
  1761. fi
  1762. echo "$ac_t""$ac_cv_type_mode_t" 1>&6
  1763. if test $ac_cv_type_mode_t = no; then
  1764.   cat >> confdefs.h <<\EOF
  1765. #define mode_t int
  1766. EOF
  1767.  
  1768. fi
  1769.  
  1770. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  1771. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  1772.   echo $ac_n "(cached) $ac_c" 1>&6
  1773. else
  1774.   cat > conftest.$ac_ext <<EOF
  1775. #line 1776 "configure"
  1776. #include "confdefs.h"
  1777. #include <sys/types.h>
  1778. #if STDC_HEADERS
  1779. #include <stdlib.h>
  1780. #endif
  1781. EOF
  1782. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1783.   egrep "size_t" >/dev/null 2>&1; then
  1784.   rm -rf conftest*
  1785.   ac_cv_type_size_t=yes
  1786. else
  1787.   rm -rf conftest*
  1788.   ac_cv_type_size_t=no
  1789. fi
  1790. rm -f conftest*
  1791.  
  1792. fi
  1793. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  1794. if test $ac_cv_type_size_t = no; then
  1795.   cat >> confdefs.h <<\EOF
  1796. #define size_t unsigned
  1797. EOF
  1798.  
  1799. fi
  1800.  
  1801. echo $ac_n "checking for pid_t""... $ac_c" 1>&6
  1802. if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
  1803.   echo $ac_n "(cached) $ac_c" 1>&6
  1804. else
  1805.   cat > conftest.$ac_ext <<EOF
  1806. #line 1807 "configure"
  1807. #include "confdefs.h"
  1808. #include <sys/types.h>
  1809. #if STDC_HEADERS
  1810. #include <stdlib.h>
  1811. #endif
  1812. EOF
  1813. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1814.   egrep "pid_t" >/dev/null 2>&1; then
  1815.   rm -rf conftest*
  1816.   ac_cv_type_pid_t=yes
  1817. else
  1818.   rm -rf conftest*
  1819.   ac_cv_type_pid_t=no
  1820. fi
  1821. rm -f conftest*
  1822.  
  1823. fi
  1824. echo "$ac_t""$ac_cv_type_pid_t" 1>&6
  1825. if test $ac_cv_type_pid_t = no; then
  1826.   cat >> confdefs.h <<\EOF
  1827. #define pid_t int
  1828. EOF
  1829.  
  1830. fi
  1831.  
  1832. for ac_func in getwd mkdir rename strdup strstr dup2 strerror valloc waitpid memmove vasprintf strtoul
  1833. do
  1834. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1835. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1836.   echo $ac_n "(cached) $ac_c" 1>&6
  1837. else
  1838.   cat > conftest.$ac_ext <<EOF
  1839. #line 1840 "configure"
  1840. #include "confdefs.h"
  1841. /* System header to define __stub macros and hopefully few prototypes,
  1842.     which can conflict with char $ac_func(); below.  */
  1843. #include <assert.h>
  1844. /* Override any gcc2 internal prototype to avoid an error.  */
  1845. char $ac_func();
  1846.  
  1847. int main() { return 0; }
  1848. int t() {
  1849.  
  1850. /* The GNU C library defines this for functions which it implements
  1851.     to always fail with ENOSYS.  Some functions are actually named
  1852.     something starting with __ and the normal name is an alias.  */
  1853. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1854. choke me
  1855. #else
  1856. $ac_func();
  1857. #endif
  1858.  
  1859. ; return 0; }
  1860. EOF
  1861. if { (eval echo configure:1862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1862.   rm -rf conftest*
  1863.   eval "ac_cv_func_$ac_func=yes"
  1864. else
  1865.   rm -rf conftest*
  1866.   eval "ac_cv_func_$ac_func=no"
  1867. fi
  1868. rm -f conftest*
  1869.  
  1870. fi
  1871. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1872.   echo "$ac_t""yes" 1>&6
  1873.   :
  1874. else
  1875.   echo "$ac_t""no" 1>&6
  1876. LIBOBJS="$LIBOBJS ${ac_func}.o"
  1877. fi
  1878.  
  1879. done
  1880.  
  1881. for ac_func in fchmod fsync ftime mkfifo putenv setvbuf vfork vprintf ftruncate timezone getpagesize initgroups fchdir sigaction sigprocmask sigvec sigsetmask sigblock
  1882. do
  1883. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1884. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1885.   echo $ac_n "(cached) $ac_c" 1>&6
  1886. else
  1887.   cat > conftest.$ac_ext <<EOF
  1888. #line 1889 "configure"
  1889. #include "confdefs.h"
  1890. /* System header to define __stub macros and hopefully few prototypes,
  1891.     which can conflict with char $ac_func(); below.  */
  1892. #include <assert.h>
  1893. /* Override any gcc2 internal prototype to avoid an error.  */
  1894. char $ac_func();
  1895.  
  1896. int main() { return 0; }
  1897. int t() {
  1898.  
  1899. /* The GNU C library defines this for functions which it implements
  1900.     to always fail with ENOSYS.  Some functions are actually named
  1901.     something starting with __ and the normal name is an alias.  */
  1902. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1903. choke me
  1904. #else
  1905. $ac_func();
  1906. #endif
  1907.  
  1908. ; return 0; }
  1909. EOF
  1910. if { (eval echo configure:1911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1911.   rm -rf conftest*
  1912.   eval "ac_cv_func_$ac_func=yes"
  1913. else
  1914.   rm -rf conftest*
  1915.   eval "ac_cv_func_$ac_func=no"
  1916. fi
  1917. rm -f conftest*
  1918.  
  1919. fi
  1920. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1921.   echo "$ac_t""yes" 1>&6
  1922.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1923.   cat >> confdefs.h <<EOF
  1924. #define $ac_tr_func 1
  1925. EOF
  1926.  
  1927. else
  1928.   echo "$ac_t""no" 1>&6
  1929. fi
  1930. done
  1931.  
  1932. echo $ac_n "checking for re_exec""... $ac_c" 1>&6
  1933. if eval "test \"`echo '$''{'ac_cv_func_re_exec'+set}'`\" = set"; then
  1934.   echo $ac_n "(cached) $ac_c" 1>&6
  1935. else
  1936.   cat > conftest.$ac_ext <<EOF
  1937. #line 1938 "configure"
  1938. #include "confdefs.h"
  1939. /* System header to define __stub macros and hopefully few prototypes,
  1940.     which can conflict with char re_exec(); below.  */
  1941. #include <assert.h>
  1942. /* Override any gcc2 internal prototype to avoid an error.  */
  1943. char re_exec();
  1944.  
  1945. int main() { return 0; }
  1946. int t() {
  1947.  
  1948. /* The GNU C library defines this for functions which it implements
  1949.     to always fail with ENOSYS.  Some functions are actually named
  1950.     something starting with __ and the normal name is an alias.  */
  1951. #if defined (__stub_re_exec) || defined (__stub___re_exec)
  1952. choke me
  1953. #else
  1954. re_exec();
  1955. #endif
  1956.  
  1957. ; return 0; }
  1958. EOF
  1959. if { (eval echo configure:1960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1960.   rm -rf conftest*
  1961.   eval "ac_cv_func_re_exec=yes"
  1962. else
  1963.   rm -rf conftest*
  1964.   eval "ac_cv_func_re_exec=no"
  1965. fi
  1966. rm -f conftest*
  1967.  
  1968. fi
  1969. if eval "test \"`echo '$ac_cv_func_'re_exec`\" = yes"; then
  1970.   echo "$ac_t""yes" 1>&6
  1971.   :
  1972. else
  1973.   echo "$ac_t""no" 1>&6
  1974. LIBOBJS="$LIBOBJS regex.o"
  1975. fi
  1976.  
  1977. echo $ac_n "checking whether utime accepts a null argument""... $ac_c" 1>&6
  1978. if eval "test \"`echo '$''{'ac_cv_func_utime_null'+set}'`\" = set"; then
  1979.   echo $ac_n "(cached) $ac_c" 1>&6
  1980. else
  1981.   rm -f conftestdata; > conftestdata
  1982. # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
  1983. if test "$cross_compiling" = yes; then
  1984.   ac_cv_func_utime_null=no
  1985. else
  1986. cat > conftest.$ac_ext <<EOF
  1987. #line 1988 "configure"
  1988. #include "confdefs.h"
  1989. #include <sys/types.h>
  1990. #include <sys/stat.h>
  1991. main() {
  1992. struct stat s, t;
  1993. exit(!(stat ("conftestdata", &s) == 0 && utime("conftestdata", (long *)0) == 0
  1994. && stat("conftestdata", &t) == 0 && t.st_mtime >= s.st_mtime
  1995. && t.st_mtime - s.st_mtime < 120));
  1996. }
  1997. EOF
  1998. { (eval echo configure:1999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1999. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2000.   ac_cv_func_utime_null=yes
  2001. else
  2002.   ac_cv_func_utime_null=no
  2003. fi
  2004. fi
  2005. rm -fr conftest*
  2006. rm -f core core.* *.core
  2007. fi
  2008.  
  2009. echo "$ac_t""$ac_cv_func_utime_null" 1>&6
  2010. if test $ac_cv_func_utime_null = yes; then
  2011.   cat >> confdefs.h <<\EOF
  2012. #define HAVE_UTIME_NULL 1
  2013. EOF
  2014.  
  2015. fi
  2016.  
  2017. echo $ac_n "checking for long file names""... $ac_c" 1>&6
  2018. if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
  2019.   echo $ac_n "(cached) $ac_c" 1>&6
  2020. else
  2021.   ac_cv_sys_long_file_names=yes
  2022. # Test for long file names in all the places we know might matter:
  2023. #      .        the current directory, where building will happen
  2024. #      /tmp        where it might want to write temporary files
  2025. #      /var/tmp        likewise
  2026. #      /usr/tmp        likewise
  2027. #      $prefix/lib    where we will be installing things
  2028. #      $exec_prefix/lib    likewise
  2029. # eval it to expand exec_prefix.
  2030. for ac_dir in `eval echo . /tmp /var/tmp /usr/tmp $prefix/lib $exec_prefix/lib` ; do
  2031.   test -d $ac_dir || continue
  2032.   test -w $ac_dir || continue # It is less confusing to not echo anything here.
  2033.   (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
  2034.   (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
  2035.   val=`cat $ac_dir/conftest9012345 2>/dev/null`
  2036.   if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
  2037.     ac_cv_sys_long_file_names=no
  2038.     rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
  2039.     break
  2040.   fi
  2041.   rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
  2042. done
  2043. fi
  2044.  
  2045. echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
  2046. if test $ac_cv_sys_long_file_names = yes; then
  2047.   cat >> confdefs.h <<\EOF
  2048. #define HAVE_LONG_FILE_NAMES 1
  2049. EOF
  2050.  
  2051. fi
  2052.  
  2053.  
  2054. echo $ac_n "checking for working fnmatch function""... $ac_c" 1>&6
  2055. if eval "test \"`echo '$''{'ccvs_cv_sys_working_fnmatch'+set}'`\" = set"; then
  2056.   echo $ac_n "(cached) $ac_c" 1>&6
  2057. else
  2058.   if test "$cross_compiling" = yes; then
  2059.   ccvs_cv_sys_working_fnmatch=no
  2060. else
  2061. cat > conftest.$ac_ext <<EOF
  2062. #line 2063 "configure"
  2063. #include "confdefs.h"
  2064.  
  2065. #include <fnmatch.h>
  2066. int
  2067. main ()
  2068. {
  2069.   exit ((fnmatch ("a", "a", FNM_PATHNAME) == 0
  2070.      && fnmatch ("a", "b", FNM_PATHNAME) == FNM_NOMATCH)
  2071.     ? 0 : 1);
  2072. }
  2073. EOF
  2074. { (eval echo configure:2075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2075. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2076.   ccvs_cv_sys_working_fnmatch=yes
  2077. else
  2078.   ccvs_cv_sys_working_fnmatch=no
  2079. fi
  2080. fi
  2081. rm -fr conftest*
  2082. fi
  2083.  
  2084. if test $ccvs_cv_sys_working_fnmatch = no; then
  2085.   LIBOBJS="$LIBOBJS fnmatch.o"
  2086. fi
  2087. echo "$ac_t""$ccvs_cv_sys_working_fnmatch" 1>&6
  2088.  
  2089. KRB4=/usr/kerberos
  2090.  
  2091. # Check whether --with-krb4 or --without-krb4 was given.
  2092. if test "${with_krb4+set}" = set; then
  2093.   withval="$with_krb4"
  2094.   KRB4=$withval
  2095. fi
  2096. echo "default place for krb4 is $KRB4"
  2097.  
  2098.  
  2099. echo $ac_n "checking size of long""... $ac_c" 1>&6
  2100. if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
  2101.   echo $ac_n "(cached) $ac_c" 1>&6
  2102. else
  2103.   if test "$cross_compiling" = yes; then
  2104.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  2105. else
  2106. cat > conftest.$ac_ext <<EOF
  2107. #line 2108 "configure"
  2108. #include "confdefs.h"
  2109. #include <stdio.h>
  2110. main()
  2111. {
  2112.   FILE *f=fopen("conftestval", "w");
  2113.   if (!f) exit(1);
  2114.   fprintf(f, "%d\n", sizeof(long));
  2115.   exit(0);
  2116. }
  2117. EOF
  2118. { (eval echo configure:2119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2119. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2120.   ac_cv_sizeof_long=`cat conftestval`
  2121. else
  2122.   ac_cv_sizeof_long=0
  2123. fi
  2124. fi
  2125. rm -fr conftest*
  2126. fi
  2127. echo "$ac_t""$ac_cv_sizeof_long" 1>&6
  2128. cat >> confdefs.h <<EOF
  2129. #define SIZEOF_LONG $ac_cv_sizeof_long
  2130. EOF
  2131.  
  2132.  
  2133. echo $ac_n "checking size of int""... $ac_c" 1>&6
  2134. if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
  2135.   echo $ac_n "(cached) $ac_c" 1>&6
  2136. else
  2137.   if test "$cross_compiling" = yes; then
  2138.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  2139. else
  2140. cat > conftest.$ac_ext <<EOF
  2141. #line 2142 "configure"
  2142. #include "confdefs.h"
  2143. #include <stdio.h>
  2144. main()
  2145. {
  2146.   FILE *f=fopen("conftestval", "w");
  2147.   if (!f) exit(1);
  2148.   fprintf(f, "%d\n", sizeof(int));
  2149.   exit(0);
  2150. }
  2151. EOF
  2152. { (eval echo configure:2153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2153. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2154.   ac_cv_sizeof_int=`cat conftestval`
  2155. else
  2156.   ac_cv_sizeof_int=0
  2157. fi
  2158. fi
  2159. rm -fr conftest*
  2160. fi
  2161. echo "$ac_t""$ac_cv_sizeof_int" 1>&6
  2162. cat >> confdefs.h <<EOF
  2163. #define SIZEOF_INT $ac_cv_sizeof_int
  2164. EOF
  2165.  
  2166.  
  2167.  
  2168. krb_h=
  2169. echo $ac_n "checking for krb.h""... $ac_c" 1>&6
  2170. cat > conftest.$ac_ext <<EOF
  2171. #line 2172 "configure"
  2172. #include "confdefs.h"
  2173. #include <krb.h>
  2174. int main() { return 0; }
  2175. int t() {
  2176. int i;
  2177. ; return 0; }
  2178. EOF
  2179. if { (eval echo configure:2180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2180.   rm -rf conftest*
  2181.   krb_h=yes krb_incdir=
  2182. else
  2183.   rm -rf conftest*
  2184.   if test "$cross_compiling" != yes && test -r $KRB4/include/krb.h; then
  2185.      hold_cflags=$CFLAGS
  2186.      CFLAGS="$CFLAGS -I$KRB4/include"
  2187.      cat > conftest.$ac_ext <<EOF
  2188. #line 2189 "configure"
  2189. #include "confdefs.h"
  2190. #include <krb.h>
  2191. int main() { return 0; }
  2192. int t() {
  2193. int i;
  2194. ; return 0; }
  2195. EOF
  2196. if { (eval echo configure:2197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2197.   rm -rf conftest*
  2198.   krb_h=yes krb_incdir=$KRB4/include
  2199. fi
  2200. rm -f conftest*
  2201.  
  2202.      CFLAGS=$hold_cflags
  2203.    fi
  2204. fi
  2205. rm -f conftest*
  2206.  
  2207. if test -z "$krb_h"; then
  2208.   cat > conftest.$ac_ext <<EOF
  2209. #line 2210 "configure"
  2210. #include "confdefs.h"
  2211. #include <krb.h>
  2212. int main() { return 0; }
  2213. int t() {
  2214. int i;
  2215. ; return 0; }
  2216. EOF
  2217. if { (eval echo configure:2218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2218.   rm -rf conftest*
  2219.   krb_h=yes krb_incdir=
  2220. else
  2221.   rm -rf conftest*
  2222.   if test "$cross_compiling" != yes && test -r $KRB4/include/kerberosIV/krb.h; then
  2223.        hold_cflags=$CFLAGS
  2224.        CFLAGS="$CFLAGS -I$KRB4/include/kerberosIV"
  2225.        cat > conftest.$ac_ext <<EOF
  2226. #line 2227 "configure"
  2227. #include "confdefs.h"
  2228. #include <krb.h>
  2229. int main() { return 0; }
  2230. int t() {
  2231. int i;
  2232. ; return 0; }
  2233. EOF
  2234. if { (eval echo configure:2235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2235.   rm -rf conftest*
  2236.   krb_h=yes krb_incdir=$KRB4/include/kerberosIV
  2237. fi
  2238. rm -f conftest*
  2239.  
  2240.        CFLAGS=$hold_cflags
  2241.      fi
  2242. fi
  2243. rm -f conftest*
  2244.  
  2245. fi
  2246. echo "$ac_t""$krb_h" 1>&6
  2247.  
  2248. if test -n "$krb_h"; then
  2249.   krb_lib=
  2250.   echo $ac_n "checking for -lkrb""... $ac_c" 1>&6
  2251. ac_lib_var=`echo krb_printf | tr '.-/+' '___p'`
  2252. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2253.   echo $ac_n "(cached) $ac_c" 1>&6
  2254. else
  2255.   ac_save_LIBS="$LIBS"
  2256. LIBS="-lkrb  $LIBS"
  2257. cat > conftest.$ac_ext <<EOF
  2258. #line 2259 "configure"
  2259. #include "confdefs.h"
  2260. /* Override any gcc2 internal prototype to avoid an error.  */
  2261. char printf();
  2262.  
  2263. int main() { return 0; }
  2264. int t() {
  2265. printf()
  2266. ; return 0; }
  2267. EOF
  2268. if { (eval echo configure:2269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2269.   rm -rf conftest*
  2270.   eval "ac_cv_lib_$ac_lib_var=yes"
  2271. else
  2272.   rm -rf conftest*
  2273.   eval "ac_cv_lib_$ac_lib_var=no"
  2274. fi
  2275. rm -f conftest*
  2276. LIBS="$ac_save_LIBS"
  2277.  
  2278. fi
  2279. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2280.   echo "$ac_t""yes" 1>&6
  2281.   krb_lib=yes krb_libdir=
  2282. else
  2283.   echo "$ac_t""no" 1>&6
  2284. if test "$cross_compiling" != yes && test -r $KRB4/lib/libkrb.a; then
  2285.        krb_lib=yes krb_libdir=$KRB4/lib
  2286.      fi
  2287. fi
  2288.  
  2289.   if test -n "$krb_lib"; then
  2290.     cat >> confdefs.h <<\EOF
  2291. #define HAVE_KERBEROS 1
  2292. EOF
  2293.  
  2294.     test -n "${krb_libdir}" && LIBS="${LIBS} -L${krb_libdir}"
  2295.     LIBS="${LIBS} -lkrb"
  2296.     echo $ac_n "checking for -ldes""... $ac_c" 1>&6
  2297. ac_lib_var=`echo des_printf | tr '.-/+' '___p'`
  2298. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2299.   echo $ac_n "(cached) $ac_c" 1>&6
  2300. else
  2301.   ac_save_LIBS="$LIBS"
  2302. LIBS="-ldes  $LIBS"
  2303. cat > conftest.$ac_ext <<EOF
  2304. #line 2305 "configure"
  2305. #include "confdefs.h"
  2306. /* Override any gcc2 internal prototype to avoid an error.  */
  2307. char printf();
  2308.  
  2309. int main() { return 0; }
  2310. int t() {
  2311. printf()
  2312. ; return 0; }
  2313. EOF
  2314. if { (eval echo configure:2315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2315.   rm -rf conftest*
  2316.   eval "ac_cv_lib_$ac_lib_var=yes"
  2317. else
  2318.   rm -rf conftest*
  2319.   eval "ac_cv_lib_$ac_lib_var=no"
  2320. fi
  2321. rm -f conftest*
  2322. LIBS="$ac_save_LIBS"
  2323.  
  2324. fi
  2325. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2326.   echo "$ac_t""yes" 1>&6
  2327.   LIBS="${LIBS} -ldes"
  2328. else
  2329.   echo "$ac_t""no" 1>&6
  2330. fi
  2331.  
  2332.     if test -n "$krb_incdir"; then
  2333.       includeopt="${includeopt} -I$krb_incdir"
  2334.       
  2335.     fi
  2336.   fi
  2337. fi
  2338. for ac_func in krb_get_err_text
  2339. do
  2340. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2341. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2342.   echo $ac_n "(cached) $ac_c" 1>&6
  2343. else
  2344.   cat > conftest.$ac_ext <<EOF
  2345. #line 2346 "configure"
  2346. #include "confdefs.h"
  2347. /* System header to define __stub macros and hopefully few prototypes,
  2348.     which can conflict with char $ac_func(); below.  */
  2349. #include <assert.h>
  2350. /* Override any gcc2 internal prototype to avoid an error.  */
  2351. char $ac_func();
  2352.  
  2353. int main() { return 0; }
  2354. int t() {
  2355.  
  2356. /* The GNU C library defines this for functions which it implements
  2357.     to always fail with ENOSYS.  Some functions are actually named
  2358.     something starting with __ and the normal name is an alias.  */
  2359. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2360. choke me
  2361. #else
  2362. $ac_func();
  2363. #endif
  2364.  
  2365. ; return 0; }
  2366. EOF
  2367. if { (eval echo configure:2368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2368.   rm -rf conftest*
  2369.   eval "ac_cv_func_$ac_func=yes"
  2370. else
  2371.   rm -rf conftest*
  2372.   eval "ac_cv_func_$ac_func=no"
  2373. fi
  2374. rm -f conftest*
  2375.  
  2376. fi
  2377. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2378.   echo "$ac_t""yes" 1>&6
  2379.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2380.   cat >> confdefs.h <<EOF
  2381. #define $ac_tr_func 1
  2382. EOF
  2383.  
  2384. else
  2385.   echo "$ac_t""no" 1>&6
  2386. fi
  2387. done
  2388.  
  2389. # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
  2390. # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
  2391. # libsocket.so which has a bad implementation of gethostbyname (it
  2392. # only looks in /etc/hosts), so we only look for -lsocket if we need
  2393. # it.
  2394. unset ac_cv_func_connect
  2395. echo $ac_n "checking for connect""... $ac_c" 1>&6
  2396. if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
  2397.   echo $ac_n "(cached) $ac_c" 1>&6
  2398. else
  2399.   cat > conftest.$ac_ext <<EOF
  2400. #line 2401 "configure"
  2401. #include "confdefs.h"
  2402. /* System header to define __stub macros and hopefully few prototypes,
  2403.     which can conflict with char connect(); below.  */
  2404. #include <assert.h>
  2405. /* Override any gcc2 internal prototype to avoid an error.  */
  2406. char connect();
  2407.  
  2408. int main() { return 0; }
  2409. int t() {
  2410.  
  2411. /* The GNU C library defines this for functions which it implements
  2412.     to always fail with ENOSYS.  Some functions are actually named
  2413.     something starting with __ and the normal name is an alias.  */
  2414. #if defined (__stub_connect) || defined (__stub___connect)
  2415. choke me
  2416. #else
  2417. connect();
  2418. #endif
  2419.  
  2420. ; return 0; }
  2421. EOF
  2422. if { (eval echo configure:2423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2423.   rm -rf conftest*
  2424.   eval "ac_cv_func_connect=yes"
  2425. else
  2426.   rm -rf conftest*
  2427.   eval "ac_cv_func_connect=no"
  2428. fi
  2429. rm -f conftest*
  2430.  
  2431. fi
  2432. if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
  2433.   echo "$ac_t""yes" 1>&6
  2434.   :
  2435. else
  2436.   echo "$ac_t""no" 1>&6
  2437. case "$LIBS" in
  2438. *-lnsl*) ;;
  2439. *) echo $ac_n "checking for -lnsl_s""... $ac_c" 1>&6
  2440. ac_lib_var=`echo nsl_s_printf | tr '.-/+' '___p'`
  2441. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2442.   echo $ac_n "(cached) $ac_c" 1>&6
  2443. else
  2444.   ac_save_LIBS="$LIBS"
  2445. LIBS="-lnsl_s  $LIBS"
  2446. cat > conftest.$ac_ext <<EOF
  2447. #line 2448 "configure"
  2448. #include "confdefs.h"
  2449. /* Override any gcc2 internal prototype to avoid an error.  */
  2450. char printf();
  2451.  
  2452. int main() { return 0; }
  2453. int t() {
  2454. printf()
  2455. ; return 0; }
  2456. EOF
  2457. if { (eval echo configure:2458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2458.   rm -rf conftest*
  2459.   eval "ac_cv_lib_$ac_lib_var=yes"
  2460. else
  2461.   rm -rf conftest*
  2462.   eval "ac_cv_lib_$ac_lib_var=no"
  2463. fi
  2464. rm -f conftest*
  2465. LIBS="$ac_save_LIBS"
  2466.  
  2467. fi
  2468. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2469.   echo "$ac_t""yes" 1>&6
  2470.     ac_tr_lib=HAVE_LIB`echo nsl_s | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2471.   cat >> confdefs.h <<EOF
  2472. #define $ac_tr_lib 1
  2473. EOF
  2474.  
  2475.   LIBS="-lnsl_s $LIBS"
  2476.  
  2477. else
  2478.   echo "$ac_t""no" 1>&6
  2479. fi
  2480.  ;;
  2481. esac
  2482. case "$LIBS" in
  2483. *-lnsl*) ;;
  2484. *) echo $ac_n "checking for -lnsl""... $ac_c" 1>&6
  2485. ac_lib_var=`echo nsl_printf | tr '.-/+' '___p'`
  2486. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2487.   echo $ac_n "(cached) $ac_c" 1>&6
  2488. else
  2489.   ac_save_LIBS="$LIBS"
  2490. LIBS="-lnsl  $LIBS"
  2491. cat > conftest.$ac_ext <<EOF
  2492. #line 2493 "configure"
  2493. #include "confdefs.h"
  2494. /* Override any gcc2 internal prototype to avoid an error.  */
  2495. char printf();
  2496.  
  2497. int main() { return 0; }
  2498. int t() {
  2499. printf()
  2500. ; return 0; }
  2501. EOF
  2502. if { (eval echo configure:2503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2503.   rm -rf conftest*
  2504.   eval "ac_cv_lib_$ac_lib_var=yes"
  2505. else
  2506.   rm -rf conftest*
  2507.   eval "ac_cv_lib_$ac_lib_var=no"
  2508. fi
  2509. rm -f conftest*
  2510. LIBS="$ac_save_LIBS"
  2511.  
  2512. fi
  2513. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2514.   echo "$ac_t""yes" 1>&6
  2515.     ac_tr_lib=HAVE_LIB`echo nsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2516.   cat >> confdefs.h <<EOF
  2517. #define $ac_tr_lib 1
  2518. EOF
  2519.  
  2520.   LIBS="-lnsl $LIBS"
  2521.  
  2522. else
  2523.   echo "$ac_t""no" 1>&6
  2524. fi
  2525.  ;;
  2526. esac
  2527. case "$LIBS" in
  2528. *-lsocket*) ;;
  2529. *) echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
  2530. ac_lib_var=`echo socket_connect | tr '.-/+' '___p'`
  2531. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2532.   echo $ac_n "(cached) $ac_c" 1>&6
  2533. else
  2534.   ac_save_LIBS="$LIBS"
  2535. LIBS="-lsocket  $LIBS"
  2536. cat > conftest.$ac_ext <<EOF
  2537. #line 2538 "configure"
  2538. #include "confdefs.h"
  2539. /* Override any gcc2 internal prototype to avoid an error.  */
  2540. char connect();
  2541.  
  2542. int main() { return 0; }
  2543. int t() {
  2544. connect()
  2545. ; return 0; }
  2546. EOF
  2547. if { (eval echo configure:2548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2548.   rm -rf conftest*
  2549.   eval "ac_cv_lib_$ac_lib_var=yes"
  2550. else
  2551.   rm -rf conftest*
  2552.   eval "ac_cv_lib_$ac_lib_var=no"
  2553. fi
  2554. rm -f conftest*
  2555. LIBS="$ac_save_LIBS"
  2556.  
  2557. fi
  2558. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2559.   echo "$ac_t""yes" 1>&6
  2560.     ac_tr_lib=HAVE_LIB`echo socket | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2561.   cat >> confdefs.h <<EOF
  2562. #define $ac_tr_lib 1
  2563. EOF
  2564.  
  2565.   LIBS="-lsocket $LIBS"
  2566.  
  2567. else
  2568.   echo "$ac_t""no" 1>&6
  2569. fi
  2570.  ;;
  2571. esac
  2572. case "$LIBS" in
  2573. *-linet*) ;;
  2574. *) echo $ac_n "checking for -linet""... $ac_c" 1>&6
  2575. ac_lib_var=`echo inet_connect | tr '.-/+' '___p'`
  2576. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2577.   echo $ac_n "(cached) $ac_c" 1>&6
  2578. else
  2579.   ac_save_LIBS="$LIBS"
  2580. LIBS="-linet  $LIBS"
  2581. cat > conftest.$ac_ext <<EOF
  2582. #line 2583 "configure"
  2583. #include "confdefs.h"
  2584. /* Override any gcc2 internal prototype to avoid an error.  */
  2585. char connect();
  2586.  
  2587. int main() { return 0; }
  2588. int t() {
  2589. connect()
  2590. ; return 0; }
  2591. EOF
  2592. if { (eval echo configure:2593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2593.   rm -rf conftest*
  2594.   eval "ac_cv_lib_$ac_lib_var=yes"
  2595. else
  2596.   rm -rf conftest*
  2597.   eval "ac_cv_lib_$ac_lib_var=no"
  2598. fi
  2599. rm -f conftest*
  2600. LIBS="$ac_save_LIBS"
  2601.  
  2602. fi
  2603. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2604.   echo "$ac_t""yes" 1>&6
  2605.     ac_tr_lib=HAVE_LIB`echo inet | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2606.   cat >> confdefs.h <<EOF
  2607. #define $ac_tr_lib 1
  2608. EOF
  2609.  
  2610.   LIBS="-linet $LIBS"
  2611.  
  2612. else
  2613.   echo "$ac_t""no" 1>&6
  2614. fi
  2615.  ;;
  2616. esac
  2617. unset ac_cv_func_connect
  2618. for ac_func in connect
  2619. do
  2620. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2621. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2622.   echo $ac_n "(cached) $ac_c" 1>&6
  2623. else
  2624.   cat > conftest.$ac_ext <<EOF
  2625. #line 2626 "configure"
  2626. #include "confdefs.h"
  2627. /* System header to define __stub macros and hopefully few prototypes,
  2628.     which can conflict with char $ac_func(); below.  */
  2629. #include <assert.h>
  2630. /* Override any gcc2 internal prototype to avoid an error.  */
  2631. char $ac_func();
  2632.  
  2633. int main() { return 0; }
  2634. int t() {
  2635.  
  2636. /* The GNU C library defines this for functions which it implements
  2637.     to always fail with ENOSYS.  Some functions are actually named
  2638.     something starting with __ and the normal name is an alias.  */
  2639. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2640. choke me
  2641. #else
  2642. $ac_func();
  2643. #endif
  2644.  
  2645. ; return 0; }
  2646. EOF
  2647. if { (eval echo configure:2648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2648.   rm -rf conftest*
  2649.   eval "ac_cv_func_$ac_func=yes"
  2650. else
  2651.   rm -rf conftest*
  2652.   eval "ac_cv_func_$ac_func=no"
  2653. fi
  2654. rm -f conftest*
  2655.  
  2656. fi
  2657. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2658.   echo "$ac_t""yes" 1>&6
  2659.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2660.   cat >> confdefs.h <<EOF
  2661. #define $ac_tr_func 1
  2662. EOF
  2663.  
  2664. else
  2665.   echo "$ac_t""no" 1>&6
  2666. fi
  2667. done
  2668.  
  2669. fi
  2670.  
  2671.  
  2672. echo $ac_n "checking for gethostname""... $ac_c" 1>&6
  2673. if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
  2674.   echo $ac_n "(cached) $ac_c" 1>&6
  2675. else
  2676.   cat > conftest.$ac_ext <<EOF
  2677. #line 2678 "configure"
  2678. #include "confdefs.h"
  2679. /* System header to define __stub macros and hopefully few prototypes,
  2680.     which can conflict with char gethostname(); below.  */
  2681. #include <assert.h>
  2682. /* Override any gcc2 internal prototype to avoid an error.  */
  2683. char gethostname();
  2684.  
  2685. int main() { return 0; }
  2686. int t() {
  2687.  
  2688. /* The GNU C library defines this for functions which it implements
  2689.     to always fail with ENOSYS.  Some functions are actually named
  2690.     something starting with __ and the normal name is an alias.  */
  2691. #if defined (__stub_gethostname) || defined (__stub___gethostname)
  2692. choke me
  2693. #else
  2694. gethostname();
  2695. #endif
  2696.  
  2697. ; return 0; }
  2698. EOF
  2699. if { (eval echo configure:2700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2700.   rm -rf conftest*
  2701.   eval "ac_cv_func_gethostname=yes"
  2702. else
  2703.   rm -rf conftest*
  2704.   eval "ac_cv_func_gethostname=no"
  2705. fi
  2706. rm -f conftest*
  2707.  
  2708. fi
  2709. if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
  2710.   echo "$ac_t""yes" 1>&6
  2711.   :
  2712. else
  2713.   echo "$ac_t""no" 1>&6
  2714. LIBOBJS="$LIBOBJS hostname.o"
  2715. fi
  2716.  
  2717.  
  2718. # If we have connect(), we want the full client & server arrangement.
  2719. if test "$ac_cv_func_connect" = yes; then
  2720. cat >> confdefs.h <<\EOF
  2721. #define CLIENT_SUPPORT 1
  2722. EOF
  2723.  
  2724. cat >> confdefs.h <<\EOF
  2725. #define SERVER_SUPPORT 1
  2726. EOF
  2727.  
  2728. # Define AUTH_SERVER_SUPPORT only if we could locate the crypt() function
  2729. unset ac_cv_func_crypt
  2730. echo $ac_n "checking for crypt""... $ac_c" 1>&6
  2731. if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
  2732.   echo $ac_n "(cached) $ac_c" 1>&6
  2733. else
  2734.   cat > conftest.$ac_ext <<EOF
  2735. #line 2736 "configure"
  2736. #include "confdefs.h"
  2737. /* System header to define __stub macros and hopefully few prototypes,
  2738.     which can conflict with char crypt(); below.  */
  2739. #include <assert.h>
  2740. /* Override any gcc2 internal prototype to avoid an error.  */
  2741. char crypt();
  2742.  
  2743. int main() { return 0; }
  2744. int t() {
  2745.  
  2746. /* The GNU C library defines this for functions which it implements
  2747.     to always fail with ENOSYS.  Some functions are actually named
  2748.     something starting with __ and the normal name is an alias.  */
  2749. #if defined (__stub_crypt) || defined (__stub___crypt)
  2750. choke me
  2751. #else
  2752. crypt();
  2753. #endif
  2754.  
  2755. ; return 0; }
  2756. EOF
  2757. if { (eval echo configure:2758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2758.   rm -rf conftest*
  2759.   eval "ac_cv_func_crypt=yes"
  2760. else
  2761.   rm -rf conftest*
  2762.   eval "ac_cv_func_crypt=no"
  2763. fi
  2764. rm -f conftest*
  2765.  
  2766. fi
  2767. if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
  2768.   echo "$ac_t""yes" 1>&6
  2769.   :
  2770. else
  2771.   echo "$ac_t""no" 1>&6
  2772. case "$LIBS" in
  2773. *-lcrypt*) ;;
  2774. *) echo $ac_n "checking for -lcrypt""... $ac_c" 1>&6
  2775. ac_lib_var=`echo crypt_crypt | tr '.-/+' '___p'`
  2776. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2777.   echo $ac_n "(cached) $ac_c" 1>&6
  2778. else
  2779.   ac_save_LIBS="$LIBS"
  2780. LIBS="-lcrypt  $LIBS"
  2781. cat > conftest.$ac_ext <<EOF
  2782. #line 2783 "configure"
  2783. #include "confdefs.h"
  2784. /* Override any gcc2 internal prototype to avoid an error.  */
  2785. char crypt();
  2786.  
  2787. int main() { return 0; }
  2788. int t() {
  2789. crypt()
  2790. ; return 0; }
  2791. EOF
  2792. if { (eval echo configure:2793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2793.   rm -rf conftest*
  2794.   eval "ac_cv_lib_$ac_lib_var=yes"
  2795. else
  2796.   rm -rf conftest*
  2797.   eval "ac_cv_lib_$ac_lib_var=no"
  2798. fi
  2799. rm -f conftest*
  2800. LIBS="$ac_save_LIBS"
  2801.  
  2802. fi
  2803. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2804.   echo "$ac_t""yes" 1>&6
  2805.     ac_tr_lib=HAVE_LIB`echo crypt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2806.   cat >> confdefs.h <<EOF
  2807. #define $ac_tr_lib 1
  2808. EOF
  2809.  
  2810.   LIBS="-lcrypt $LIBS"
  2811.  
  2812. else
  2813.   echo "$ac_t""no" 1>&6
  2814. fi
  2815.  ;;
  2816. esac
  2817. unset ac_cv_func_crypt
  2818. for ac_func in crypt
  2819. do
  2820. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2821. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2822.   echo $ac_n "(cached) $ac_c" 1>&6
  2823. else
  2824.   cat > conftest.$ac_ext <<EOF
  2825. #line 2826 "configure"
  2826. #include "confdefs.h"
  2827. /* System header to define __stub macros and hopefully few prototypes,
  2828.     which can conflict with char $ac_func(); below.  */
  2829. #include <assert.h>
  2830. /* Override any gcc2 internal prototype to avoid an error.  */
  2831. char $ac_func();
  2832.  
  2833. int main() { return 0; }
  2834. int t() {
  2835.  
  2836. /* The GNU C library defines this for functions which it implements
  2837.     to always fail with ENOSYS.  Some functions are actually named
  2838.     something starting with __ and the normal name is an alias.  */
  2839. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2840. choke me
  2841. #else
  2842. $ac_func();
  2843. #endif
  2844.  
  2845. ; return 0; }
  2846. EOF
  2847. if { (eval echo configure:2848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2848.   rm -rf conftest*
  2849.   eval "ac_cv_func_$ac_func=yes"
  2850. else
  2851.   rm -rf conftest*
  2852.   eval "ac_cv_func_$ac_func=no"
  2853. fi
  2854. rm -f conftest*
  2855.  
  2856. fi
  2857. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2858.   echo "$ac_t""yes" 1>&6
  2859.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2860.   cat >> confdefs.h <<EOF
  2861. #define $ac_tr_func 1
  2862. EOF
  2863.  
  2864. else
  2865.   echo "$ac_t""no" 1>&6
  2866. fi
  2867. done
  2868.  
  2869. fi
  2870.  
  2871.   if test "$ac_cv_func_crypt" = yes; then
  2872.   cat >> confdefs.h <<\EOF
  2873. #define AUTH_SERVER_SUPPORT 1
  2874. EOF
  2875.  
  2876.   fi
  2877. fi
  2878.  
  2879. test -f src/options.h && (
  2880.   echo "configure: warning: saving ./src/options.h in ./src/options.h-SAVED" 1>&2
  2881.   echo "configure: warning: You may wish to check that local options have not been lost." 1>&2
  2882.   echo "configure: warning: Do not re-run ./configure or ./config.status until you have...." 1>&2
  2883.   cp ./src/options.h ./src/options.h-SAVED
  2884. )
  2885.  
  2886. trap '' 1 2 15
  2887. cat > confcache <<\EOF
  2888. # This file is a shell script that caches the results of configure
  2889. # tests run on this system so they can be shared between configure
  2890. # scripts and configure runs.  It is not useful on other systems.
  2891. # If it contains results you don't want to keep, you may remove or edit it.
  2892. #
  2893. # By default, configure uses ./config.cache as the cache file,
  2894. # creating it if it does not exist already.  You can give configure
  2895. # the --cache-file=FILE option to use a different cache file; that is
  2896. # what configure does when it calls configure scripts in
  2897. # subdirectories, so they share the cache.
  2898. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  2899. # config.status only pays attention to the cache file if you give it the
  2900. # --recheck option to rerun configure.
  2901. #
  2902. EOF
  2903. # Ultrix sh set writes to stderr and can't be redirected directly,
  2904. # and sets the high bit in the cache file unless we assign to the vars.
  2905. (set) 2>&1 |
  2906.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  2907.   >> confcache
  2908. if cmp -s $cache_file confcache; then
  2909.   :
  2910. else
  2911.   if test -w $cache_file; then
  2912.     echo "updating cache $cache_file"
  2913.     cat confcache > $cache_file
  2914.   else
  2915.     echo "not updating unwritable cache $cache_file"
  2916.   fi
  2917. fi
  2918. rm -f confcache
  2919.  
  2920. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  2921.  
  2922. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2923. # Let make expand exec_prefix.
  2924. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2925.  
  2926. # Any assignment to VPATH causes Sun make to only execute
  2927. # the first set of double-colon rules, so remove it if not needed.
  2928. # If there is a colon in the path, we need to keep it.
  2929. if test "x$srcdir" = x.; then
  2930.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  2931. fi
  2932.  
  2933. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  2934.  
  2935. DEFS=-DHAVE_CONFIG_H
  2936.  
  2937. # Without the "./", some shells look in PATH for config.status.
  2938. : ${CONFIG_STATUS=./config.status}
  2939.  
  2940. echo creating $CONFIG_STATUS
  2941. rm -f $CONFIG_STATUS
  2942. cat > $CONFIG_STATUS <<EOF
  2943. #! /bin/sh
  2944. # Generated automatically by configure.
  2945. # Run this file to recreate the current configuration.
  2946. # This directory was configured as follows,
  2947. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2948. #
  2949. # $0 $ac_configure_args
  2950. #
  2951. # Compiler output produced by configure, useful for debugging
  2952. # configure, is in ./config.log if it exists.
  2953.  
  2954. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  2955. for ac_option
  2956. do
  2957.   case "\$ac_option" in
  2958.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2959.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2960.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2961.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2962.     echo "$CONFIG_STATUS generated by autoconf version 2.9"
  2963.     exit 0 ;;
  2964.   -help | --help | --hel | --he | --h)
  2965.     echo "\$ac_cs_usage"; exit 0 ;;
  2966.   *) echo "\$ac_cs_usage"; exit 1 ;;
  2967.   esac
  2968. done
  2969.  
  2970. ac_given_srcdir=$srcdir
  2971. ac_given_INSTALL="$INSTALL"
  2972.  
  2973. trap 'rm -fr `echo "Makefile lib/Makefile src/Makefile doc/Makefile \
  2974.       man/Makefile tools/Makefile tools/pcl-cvs/Makefile \
  2975.       contrib/Makefile contrib/elib/Makefile \
  2976.       windows-NT/Makefile os2/Makefile macintosh/Makefile stamp-h config.h src/options.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  2977. EOF
  2978. cat >> $CONFIG_STATUS <<EOF
  2979.  
  2980. # Protect against being on the right side of a sed subst in config.status.
  2981. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  2982.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  2983. $ac_vpsub
  2984. $extrasub
  2985. s%@CFLAGS@%$CFLAGS%g
  2986. s%@CPPFLAGS@%$CPPFLAGS%g
  2987. s%@CXXFLAGS@%$CXXFLAGS%g
  2988. s%@DEFS@%$DEFS%g
  2989. s%@LDFLAGS@%$LDFLAGS%g
  2990. s%@LIBS@%$LIBS%g
  2991. s%@exec_prefix@%$exec_prefix%g
  2992. s%@prefix@%$prefix%g
  2993. s%@program_transform_name@%$program_transform_name%g
  2994. s%@bindir@%$bindir%g
  2995. s%@sbindir@%$sbindir%g
  2996. s%@libexecdir@%$libexecdir%g
  2997. s%@datadir@%$datadir%g
  2998. s%@sysconfdir@%$sysconfdir%g
  2999. s%@sharedstatedir@%$sharedstatedir%g
  3000. s%@localstatedir@%$localstatedir%g
  3001. s%@libdir@%$libdir%g
  3002. s%@includedir@%$includedir%g
  3003. s%@oldincludedir@%$oldincludedir%g
  3004. s%@infodir@%$infodir%g
  3005. s%@mandir@%$mandir%g
  3006. s%@CC@%$CC%g
  3007. s%@CPP@%$CPP%g
  3008. s%@CVS@%$CVS%g
  3009. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  3010. s%@INSTALL_DATA@%$INSTALL_DATA%g
  3011. s%@RANLIB@%$RANLIB%g
  3012. s%@YACC@%$YACC%g
  3013. s%@SET_MAKE@%$SET_MAKE%g
  3014. s%@perl_path@%$perl_path%g
  3015. s%@csh_path@%$csh_path%g
  3016. s%@LIBOBJS@%$LIBOBJS%g
  3017. s%@KRB4@%$KRB4%g
  3018. s%@includeopt@%$includeopt%g
  3019.  
  3020. CEOF
  3021. EOF
  3022. cat >> $CONFIG_STATUS <<EOF
  3023.  
  3024. CONFIG_FILES=\${CONFIG_FILES-"Makefile lib/Makefile src/Makefile doc/Makefile \
  3025.       man/Makefile tools/Makefile tools/pcl-cvs/Makefile \
  3026.       contrib/Makefile contrib/elib/Makefile \
  3027.       windows-NT/Makefile os2/Makefile macintosh/Makefile stamp-h"}
  3028. EOF
  3029. cat >> $CONFIG_STATUS <<\EOF
  3030. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  3031.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  3032.   case "$ac_file" in
  3033.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  3034.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  3035.   *) ac_file_in="${ac_file}.in" ;;
  3036.   esac
  3037.  
  3038.   # Adjust relative srcdir, etc. for subdirectories.
  3039.  
  3040.   # Remove last slash and all that follows it.  Not all systems have dirname.
  3041.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  3042.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  3043.     # The file is in a subdirectory.
  3044.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  3045.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  3046.     # A "../" for each directory in $ac_dir_suffix.
  3047.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  3048.   else
  3049.     ac_dir_suffix= ac_dots=
  3050.   fi
  3051.  
  3052.   case "$ac_given_srcdir" in
  3053.   .)  srcdir=.
  3054.       if test -z "$ac_dots"; then top_srcdir=.
  3055.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  3056.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  3057.   *) # Relative path.
  3058.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  3059.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  3060.   esac
  3061.  
  3062.   case "$ac_given_INSTALL" in
  3063.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  3064.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  3065.   esac
  3066.   echo creating "$ac_file"
  3067.   rm -f "$ac_file"
  3068.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  3069.   case "$ac_file" in
  3070.   *Makefile*) ac_comsub="1i\\
  3071. # $configure_input" ;;
  3072.   *) ac_comsub= ;;
  3073.   esac
  3074.   sed -e "$ac_comsub
  3075. s%@configure_input@%$configure_input%g
  3076. s%@srcdir@%$srcdir%g
  3077. s%@top_srcdir@%$top_srcdir%g
  3078. s%@INSTALL@%$INSTALL%g
  3079. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  3080. fi; done
  3081. rm -f conftest.subs
  3082.  
  3083. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  3084. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  3085. #
  3086. # ac_d sets the value in "#define NAME VALUE" lines.
  3087. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  3088. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  3089. ac_dC='\3'
  3090. ac_dD='%g'
  3091. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  3092. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3093. ac_uB='\([     ]\)%\1#\2define\3'
  3094. ac_uC=' '
  3095. ac_uD='\4%g'
  3096. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  3097. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3098. ac_eB='$%\1#\2define\3'
  3099. ac_eC=' '
  3100. ac_eD='%g'
  3101.  
  3102. CONFIG_HEADERS=${CONFIG_HEADERS-"config.h src/options.h"}
  3103. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  3104.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  3105.   case "$ac_file" in
  3106.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  3107.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  3108.   *) ac_file_in="${ac_file}.in" ;;
  3109.   esac
  3110.  
  3111.   echo creating $ac_file
  3112.  
  3113.   rm -f conftest.frag conftest.in conftest.out
  3114.   cp $ac_given_srcdir/$ac_file_in conftest.in
  3115.  
  3116. EOF
  3117.  
  3118. # Transform confdefs.h into a sed script conftest.vals that substitutes
  3119. # the proper values into config.h.in to produce config.h.  And first:
  3120. # Protect against being on the right side of a sed subst in config.status.
  3121. # Protect against being in an unquoted here document in config.status.
  3122. rm -f conftest.vals
  3123. cat > conftest.hdr <<\EOF
  3124. s/[\\&%]/\\&/g
  3125. s%[\\$`]%\\&%g
  3126. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  3127. s%ac_d%ac_u%gp
  3128. s%ac_u%ac_e%gp
  3129. EOF
  3130. sed -n -f conftest.hdr confdefs.h > conftest.vals
  3131. rm -f conftest.hdr
  3132.  
  3133. # This sed command replaces #undef with comments.  This is necessary, for
  3134. # example, in the case of _POSIX_SOURCE, which is predefined and required
  3135. # on some systems where configure will not decide to define it.
  3136. cat >> conftest.vals <<\EOF
  3137. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  3138. EOF
  3139.  
  3140. # Break up conftest.vals because some shells have a limit on
  3141. # the size of here documents, and old seds have small limits too.
  3142. # Maximum number of lines to put in a single here document.
  3143. ac_max_here_lines=12
  3144.  
  3145. rm -f conftest.tail
  3146. while :
  3147. do
  3148.   ac_lines=`grep -c . conftest.vals`
  3149.   # grep -c gives empty output for an empty file on some AIX systems.
  3150.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  3151.   # Write a limited-size here document to conftest.frag.
  3152.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  3153.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  3154.   echo 'CEOF
  3155.   sed -f conftest.frag conftest.in > conftest.out
  3156.   rm -f conftest.in
  3157.   mv conftest.out conftest.in
  3158. ' >> $CONFIG_STATUS
  3159.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  3160.   rm -f conftest.vals
  3161.   mv conftest.tail conftest.vals
  3162. done
  3163. rm -f conftest.vals
  3164.  
  3165. cat >> $CONFIG_STATUS <<\EOF
  3166.   rm -f conftest.frag conftest.h
  3167.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  3168.   cat conftest.in >> conftest.h
  3169.   rm -f conftest.in
  3170.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  3171.     echo "$ac_file is unchanged"
  3172.     rm -f conftest.h
  3173.   else
  3174.     rm -f $ac_file
  3175.     mv conftest.h $ac_file
  3176.   fi
  3177. fi; done
  3178.  
  3179.  
  3180.  
  3181. exit 0
  3182. EOF
  3183. chmod +x $CONFIG_STATUS
  3184. rm -fr confdefs* $ac_clean_files
  3185. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  3186.  
  3187.